diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-11 15:40:31 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-11 15:40:31 +0100 |
commit | 786fbaef73c522b6d138145b612034913ff70d03 (patch) | |
tree | 72906d050cde200d1259bec36f8ab2b91dd03404 /FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp | |
parent | 7105bfbc86840282569e860d7250799dcc140e32 (diff) |
replace hand-rolled timer class with QElapsedTimer
Diffstat (limited to 'FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp')
-rw-r--r-- | FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp index 7bd447cb..83bf6911 100644 --- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp +++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp @@ -76,8 +76,7 @@ void Tracker::run() if (commands & PAUSE) continue;
commands = 0;
- dt = time.elapsed() / 1000.0;
- time.restart();
+ dt = time.restart() / 1000.0;
new_frame = camera.get_frame(dt, &frame);
if (new_frame && !frame.empty())
|