diff options
Diffstat (limited to 'FTNoIR_Tracker_PT/timer.cpp')
-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 363b5b09..ed7606e5 100644 --- a/FTNoIR_Tracker_PT/timer.cpp +++ b/FTNoIR_Tracker_PT/timer.cpp @@ -55,7 +55,7 @@ double Timer::elapsed() startTime = startCount.QuadPart * (1e3 / frequency.QuadPart);
endTime = endCount.QuadPart * (1e3 / frequency.QuadPart);
#else
- if(!stopped)
+ if(running)
gettimeofday(&endCount, NULL);
startTime = (startCount.tv_sec * 1e3) + startCount.tv_usec;
@@ -63,4 +63,4 @@ double Timer::elapsed() #endif
return endTime - startTime;
-}
\ No newline at end of file +}
|