diff options
Diffstat (limited to 'FTNoIR_Tracker_PT')
-rw-r--r-- | FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp | 2 | ||||
-rw-r--r-- | FTNoIR_Tracker_PT/ftnoir_tracker_pt.h | 4 |
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
|