std::function< void()> type_callback
void registerEvent(TimeEvent *event)
Adds a TimeEvent.
void setInterval(int32_t msec)
Set the interval in milliseconds.
void start()
Start the timer.
static TimeManager * instance()
void unregisterEvent(TimeEvent *event)
Removes a TimeEvent.
Interface for events to be registered with TimeManager.
void setPeriod(int32_t period)
Set the period of the event.
void setLastUpdateTime(uint32_t ms)
Set the last time the event was updated.
void stop()
Stop the timer.
Timer()
Default constructor.
virtual ~Timer()
Destructor.
void setCallback(const type_callback &callback)
Set the callback that will be called.
void updateEvent(uint32_t)
Update function to be overridden by client.