diff options
Diffstat (limited to 'FTNoIR_Tracker_PT')
-rw-r--r-- | FTNoIR_Tracker_PT/timer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FTNoIR_Tracker_PT/timer.cpp b/FTNoIR_Tracker_PT/timer.cpp index a3141113..080dd713 100644 --- a/FTNoIR_Tracker_PT/timer.cpp +++ b/FTNoIR_Tracker_PT/timer.cpp @@ -54,13 +54,13 @@ double Timer::elapsed() startTime = startCount.QuadPart * (1e3 / frequency.QuadPart);
endTime = endCount.QuadPart * (1e3 / frequency.QuadPart);
+ return endTime - startTime;
#else
if(running)
gettimeofday(&endCount, NULL);
startTime = (startCount.tv_sec) + startCount.tv_usec * 1e-6;
endTime = (endCount.tv_sec) + endCount.tv_usec * 1e-6;
-#endif
-
return (endTime - startTime) * 1e3;
+#endif
}
|