diff options
Diffstat (limited to 'ftnoir_tracker_pt')
-rw-r--r-- | ftnoir_tracker_pt/ftnoir_tracker_pt.cpp | 3 |
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); |