From 786fbaef73c522b6d138145b612034913ff70d03 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 11 Jan 2014 15:40:31 +0100 Subject: replace hand-rolled timer class with QElapsedTimer --- FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp') 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()) -- cgit v1.2.3