A timer class that can't be fooled by NTP:ing the system clock to old time.
More...
#include <timer.hpp>
Public Member Functions |
| Timer (NDB_TICKS delay_time) |
void | setDelay (NDB_TICKS delay_time) |
NDB_TICKS | getDelay () const |
void | reset (NDB_TICKS now) |
bool | check (NDB_TICKS now) |
Detailed Description
A timer class that can't be fooled by NTP:ing the system clock to old time.
Definition at line 23 of file timer.hpp.
Member Function Documentation
bool Timer::check |
( |
NDB_TICKS |
now | ) |
|
|
inline |
Standard alarm check
Time progressing, but it is not alarm time yet
Time has moved backwards
Definition at line 47 of file timer.hpp.
void Timer::reset |
( |
NDB_TICKS |
now | ) |
|
|
inline |
void Timer::setDelay |
( |
NDB_TICKS |
delay_time | ) |
|
|
inline |
Set/Get alarm time of timer
Definition at line 36 of file timer.hpp.
The documentation for this class was generated from the following file: