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

◆ ready()

bool CEveryNTime::ready ( )
inline

Check if the time interval has elapsed.

Definition at line 1150 of file lib8tion.h.

1150 {
1151 bool isReady = (getElapsed() >= mPeriod);
1152 if( isReady ) { reset(); }
1153 return isReady;
1154 }
TIMETYPE mPeriod
Timing interval to check.
Definition lib8tion.h:1123
TIMETYPE getElapsed()
Get the time elapsed since the last trigger event.
Definition lib8tion.h:1141
void reset()
Reset the timestamp to the current time.
Definition lib8tion.h:1157

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: