From 6592e8fe068111b2dfae8b45699c2974681bc9d8 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sat, 4 May 2019 21:11:08 +0200 Subject: [PATCH] Session: Print duration of last acquisition only. This resets the timer at the start of a new acquisition. --- pv/session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pv/session.cpp b/pv/session.cpp index c2fd214..6d9ce83 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.); -- 2.30.2