From: Tilman Sauerbeck Date: Sat, 4 May 2019 19:11:08 +0000 (+0200) Subject: Session: Print duration of last acquisition only. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6592e8fe068111b2dfae8b45699c2974681bc9d8;p=pulseview.git Session: Print duration of last acquisition only. This resets the timer at the start of a new acquisition. --- diff --git a/pv/session.cpp b/pv/session.cpp index c2fd2149..6d9ce830 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -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.);