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

◆ bseconds16()

LIB8STATIC u16 fl::bseconds16 ( )

Returns the current time-since-boot in "binary seconds", which are actually 1024/1000 of a second long.

Definition at line 66 of file time_functions.h.

66 {
67 u32 ms = fl::millis();
68 u16 s16;
69 s16 = div1024_32_16(ms);
70 return s16;
71}
LIB8STATIC u16 div1024_32_16(u32 in32) FL_NOEXCEPT
Helper routine to divide a 32-bit value by 1024, returning only the low 16 bits.
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.

References div1024_32_16(), FL_NOEXCEPT, LIB8STATIC, and millis().

+ Here is the call graph for this function: