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

◆ ready()

bool CEveryNTime::ready ( )
inline

Check if the time interval has elapsed.

Definition at line 836 of file lib8tion.h.

836 {
837 bool isReady = (getElapsed() >= mPeriod);
838 if( isReady ) { reset(); }
839 return isReady;
840 }
TIMETYPE mPeriod
Timing interval to check.
Definition lib8tion.h:809
TIMETYPE getElapsed()
Get the time elapsed since the last trigger event.
Definition lib8tion.h:827
void reset()
Reset the timestamp to the current time.
Definition lib8tion.h:843

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: