Session: Print duration of last acquisition only.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sat, 4 May 2019 19:11:08 +0000 (21:11 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sat, 4 May 2019 19:11:08 +0000 (21:11 +0200)
This resets the timer at the start of a new acquisition.

pv/session.cpp

index c2fd214..6d9ce83 100644 (file)
@@ -825,7 +825,7 @@ void Session::set_capture_state(capture_state state)
        bool changed;
 
        if (state == Running)
-               acq_time_.start();
+               acq_time_.restart();
        if (state == Stopped)
                qDebug("Acquisition took %.2f s", acq_time_.elapsed() / 1000.);