|
FastLED 3.9.15
|
Time interval checking class.
Keeps track of a time interval in order to limit how often code is executed.
Definition at line 982 of file lib8tion.h.
#include <lib8tion.h>
Public Member Functions | |
| CEveryNTime () | |
| Default constructor. | |
| CEveryNTime (TIMETYPE period) | |
| Constructor. | |
| TIMETYPE | getElapsed () |
| Get the time elapsed since the last trigger event. | |
| TIMETYPE | getLastTriggerTime () |
| Get the timestamp of the most recent trigger event. | |
| TIMETYPE | getPeriod () |
| Get the time interval between triggers. | |
| TIMETYPE | getRemaining () |
| Get the time until the next trigger event. | |
| TIMETYPE | getTime () |
| Get the current time according to the class' timekeeper. | |
| operator bool () | |
| Check if the time interval has elapsed. | |
| bool | ready () |
| Check if the time interval has elapsed. | |
| void | reset () |
| Reset the timestamp to the current time. | |
| void | setPeriod (TIMETYPE period) |
| Set the time interval between triggers. | |
| void | trigger () |
| Reset the timestamp so it is ready() on next call. | |
Public Attributes | |
| TIMETYPE | mPeriod |
| Timing interval to check. | |
| TIMETYPE | mPrevTrigger |
| Timestamp of the last time the class was "ready". | |