FastLED 3.9.15
Loading...
Searching...
No Matches

◆ ready()

bool CEveryNTime::ready ( )
inline

Check if the time interval has elapsed.

Definition at line 1132 of file lib8tion.h.

1132 {
1133 bool isReady = (getElapsed() >= mPeriod);
1134 if( isReady ) { reset(); }
1135 return isReady;
1136 }
TIMETYPE mPeriod
Timing interval to check.
Definition lib8tion.h:1105
TIMETYPE getElapsed()
Get the time elapsed since the last trigger event.
Definition lib8tion.h:1123
void reset()
Reset the timestamp to the current time.
Definition lib8tion.h:1139

References getElapsed(), mPeriod, and reset().

Referenced by operator bool().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: