summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_PT
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-06-11 17:42:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-06-11 17:42:05 +0200
commite5276167b90c9f156c31fd811a7106f1880b2856 (patch)
treebc1395aa4108664fc56b0d0b58bd4f0e3d063e3a /FTNoIR_Tracker_PT
parentafbca18600670b900eaa0ab30a296428d66eaaaf (diff)
use the precise counter
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'FTNoIR_Tracker_PT')
-rw-r--r--FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp2
-rw-r--r--FTNoIR_Tracker_PT/ftnoir_tracker_pt.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
index 162e4343..cbc1f1dc 100644
--- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
+++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
@@ -74,7 +74,7 @@ void Tracker::run()
if (commands & PAUSE) continue;
commands = 0;
- dt = time.restart() / 1000.0;
+ dt = time.start() / 1000.0;
new_frame = camera.get_frame(dt, &frame);
diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.h b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.h
index 1f6efce1..80abbc6a 100644
--- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.h
+++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.h
@@ -18,7 +18,7 @@
#include "point_extractor.h"
#include "point_tracker.h"
#include "pt_video_widget.h"
-#include <QElapsedTimer>
+#include "facetracknoir/timer.hpp"
#include <QThread>
#include <QMutex>
@@ -84,7 +84,7 @@ protected:
bool tracking_valid;
settings s;
- QElapsedTimer time;
+ Timer time;
};
#undef VideoWidget