55 void timerCallback()
override { callback(); }
Utility class wrapping a single non-null callback called by a Timer.
~TimedCallback() noexcept override
Destructor.
void stopTimer() noexcept
Stops the timer.
TimedCallback(std::function< void()> callbackIn)
Constructor.
Makes repeated callbacks to a virtual method at a specified time interval.
void stopTimer() noexcept
Stops the timer.
int getTimerInterval() const noexcept
Returns the timer's interval.
void startTimerHz(int timerFrequencyHz) noexcept
Starts the timer with an interval specified in Hertz.
bool isTimerRunning() const noexcept
Returns true if the timer is currently running.
void startTimer(int intervalInMilliseconds) noexcept
Starts the timer and sets the length of interval required.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...