Allow stopwatch and printcounter to go over 18 hours

This commit is contained in:
Scott Lahteine
2016-07-12 19:03:42 -07:00
parent 6080924589
commit e481b79af1
7 changed files with 24 additions and 26 deletions

View File

@ -42,9 +42,9 @@ enum StopwatchState {
class Stopwatch {
private:
StopwatchState state;
uint16_t accumulator;
uint32_t startTimestamp;
uint32_t stopTimestamp;
millis_t accumulator;
millis_t startTimestamp;
millis_t stopTimestamp;
public:
/**
@ -101,7 +101,7 @@ class Stopwatch {
* @details Returns the total number of seconds the timer has been running.
* @return the delta since starting the stopwatch
*/
uint16_t duration();
millis_t duration();
#if ENABLED(DEBUG_STOPWATCH)