uint32_t intervalMs
Timer interval (milliseconds).
Definition ksSimpleTimer.h:29
void setInterval(uint32_t intervalMs)
Sets timer interval (milliseconds) and restarts the timer.
Definition ksSimpleTimer.cpp:21
bool triggered()
Checks if timer interval just passed and resets the timer in this case. If timer interval is 0 then a...
Definition ksSimpleTimer.cpp:32
void restart()
Restarts timer. Will set last trigger time to current time w/o triggering the timer).
Definition ksSimpleTimer.cpp:43
ksSimpleTimer(uint32_t intervalMs)
Constructs timer with interval (milliseconds).
Definition ksSimpleTimer.cpp:16
bool hasTimePassed() const
Checks if timer interval just passed. Restarting timer relies on user. If timer interval is 0 then al...
Definition ksSimpleTimer.cpp:27
uint32_t lastTriggerTimeMs
Last trigger time (milliseconds).
Definition ksSimpleTimer.h:30