7#include <AH/Arduino-Wrapper.h>
10#include <AH/Settings/NamespaceSettings.hpp>
27template <timefunction time = micros>
45 explicit operator bool() {
#define BEGIN_AH_NAMESPACE
#define AH_DIAGNOSTIC_EXTERNAL_HEADER()
#define AH_DIAGNOSTIC_POP()
#define AH_DIAGNOSTIC_WERROR()
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.