A timer which fires a TimerEvent at a fixed interval.
More...
#include <Timer.hpp>
A timer which fires a TimerEvent at a fixed interval.
Timers are created and managed through a TimerManager. They have a 1-second resolution.
- Author
- Mark Lindner
◆ ~Timer()
◆ getInterval()
timespan_s_t getInterval |
( |
| ) |
const |
|
inline |
Get the interval at which this timer fires.
◆ getLastFiredTime()
time_ms_t getLastFiredTime |
( |
| ) |
const |
|
inline |
Get the time at which this timer last fired.
◆ isRepeating()
bool isRepeating |
( |
| ) |
const |
|
inline |
Test if this is a repeating timer.
◆ setInterval()
void setInterval |
( |
timespan_s_t |
interval | ) |
|
|
inline |
Set the interval at which this timer fires.
◆ setRepeating()
void setRepeating |
( |
bool |
repeating | ) |
|
|
inline |
Specify whether this is a repeating or one-shot timer.
The documentation for this class was generated from the following files: