Timer for accumulating 10 ms intervals that does not overflow after ~30 min
This class simply creates a timer that accumulates 10 millisecond intervals which does not overflow after about 30 min.
Diff: RunTimer.cpp
- Revision:
- 3:9efa965d2111
- Parent:
- 2:67e16d628edc
--- a/RunTimer.cpp Thu May 19 16:45:31 2016 +0000 +++ b/RunTimer.cpp Mon Jul 11 18:26:47 2016 +0000 @@ -11,6 +11,7 @@ } void RunTimer::timeAcc(void){ + ms_total += 10.0; this->ms +=10; if(this->ms == 1000){ this->ms = 0;