summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-24 16:17:12 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-24 16:17:12 +0100
commitc0088b3d4b115d6e40c98f9a142f13f08babe7a0 (patch)
tree70c9104081316bdae77a5ccc831b839cf9f1db8e /ftnoir_tracker_pt
parentaa0549fd18134f5d8fc4046ab32b46352ad379a3 (diff)
timer: split start/elapsed. convert uses
Diffstat (limited to 'ftnoir_tracker_pt')
-rw-r--r--ftnoir_tracker_pt/ftnoir_tracker_pt.cpp3
1 files changed, 2 insertions, 1 deletions
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);