Session: Use a monotonic clock to measure acquisition time.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sat, 4 May 2019 19:14:24 +0000 (21:14 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sat, 4 May 2019 19:14:24 +0000 (21:14 +0200)
pv/session.hpp

index 211fe1b32fcf2bba13e1963bf5b67c9066cba0df..a4aaf6aabbcc8c94bf32e446375e8b9218a36b26 100644 (file)
@@ -38,7 +38,7 @@
 #include <QObject>
 #include <QSettings>
 #include <QString>
-#include <QTime>
+#include <QElapsedTimer>
 
 #ifdef ENABLE_FLOW
 #include <gstreamermm.h>
@@ -307,7 +307,7 @@ private:
        bool data_saved_;
        bool frame_began_;
 
-       QTime acq_time_;
+       QElapsedTimer acq_time_;
 
 #ifdef ENABLE_FLOW
        RefPtr<Pipeline> pipeline_;