22template <timefunction time = micros>
40 explicit operator bool() {
#define BEGIN_AH_NAMESPACE
A class for easily managing timed events.
unsigned long getInterval() const
Get the interval of the timer.
Timer(unsigned long interval)
Constructor.
void setInterval(unsigned long interval)
Set the interval of the timer.
void beginNextPeriod()
Initialize or reset the timer. The timer will fire after one period.
void begin()
Initialize or reset the timer. The timer will fire immediately.
unsigned long(*)() timefunction
A function type that returns a time value.