]> sigrok.org Git - pulseview.git/commitdiff
Session: Print duration of last acquisition only.
authorTilman Sauerbeck <redacted>
Sat, 4 May 2019 19:11:08 +0000 (21:11 +0200)
committerTilman Sauerbeck <redacted>
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 c2fd21498b248f36086580466ccf2356bd64bc87..6d9ce830bdaf19ef8ee33ba651f0844516904778 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.);