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

◆ elapsed()

u32 fl::Timeout::elapsed ( u32 current_time) const
inline

Get elapsed time since timeout started.

Parameters
current_timeCurrent timestamp (in same units as constructor)
Returns
Elapsed time (in same units as constructor)

Definition at line 62 of file timeout.h.

62 {
63 return current_time - mStartTime; // Rollover-safe
64 }
u32 mStartTime
Start timestamp.
Definition timeout.h:81

References mStartTime.