66 void start(
unsigned int timeout,
bool repeat=
true);
75 std::shared_ptr<TimerImpl> impl;
Timer()
Creates a timer object.
std::function< void()> & func_expired()
Callback invoked every time the timer interval occurs.
unsigned int get_timeout() const
Returns the current timeout. In milliseconds.
void stop()
Stop the timer.
Timer class that invokes a callback on a specified interval.
Definition: timer.h:41
bool is_repeating() const
Returns true if the timer repeats until it is stopped.
void start(unsigned int timeout, bool repeat=true)
Starts the timer. Timeout in milliseconds.