Skip to content

Commit

Permalink
Updating loop timer interval
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-se committed Feb 8, 2025
1 parent 080b91e commit 0587ce5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/looptimer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class LoopTimer {
void reset() { _startMillis = millis(); }
uint64_t getLoopCounter() { return _loopCounter; }
int32_t getTimePassed() { return abs((int32_t)(millis() - _startMillis)); }
void setInterval(uint64_t interval) { _interval = interval; }
};

#endif // SRC_LOOPTIMER_HPP_
Expand Down

0 comments on commit 0587ce5

Please sign in to comment.