From c0088b3d4b115d6e40c98f9a142f13f08babe7a0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 24 Nov 2014 16:17:12 +0100 Subject: timer: split start/elapsed. convert uses --- ftnoir_tracker_pt/ftnoir_tracker_pt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ftnoir_tracker_pt') diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp index 2fd5a514..05e7b067 100644 --- a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp +++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp @@ -59,7 +59,8 @@ void Tracker::run() while((commands & ABORT) == 0) { apply_inner(); - const double dt = time.start() * 1e-9; + const double dt = time.elapsed() * 1e-9; + time.start(); cv::Mat frame; const bool new_frame = camera.get_frame(dt, &frame); -- cgit v1.2.3