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

◆ ready()

bool CEveryNTime::ready ( )
inline

Check if the time interval has elapsed.

Definition at line 1012 of file lib8tion.h.

1012 {
1013 bool isReady = (getElapsed() >= mPeriod);
1014 if( isReady ) { reset(); }
1015 return isReady;
1016 }
TIMETYPE mPeriod
Timing interval to check.
Definition lib8tion.h:985
TIMETYPE getElapsed()
Get the time elapsed since the last trigger event.
Definition lib8tion.h:1003
void reset()
Reset the timestamp to the current time.
Definition lib8tion.h:1019

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: