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

◆ bseconds16()

LIB8STATIC uint16_t bseconds16 ( )

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

Definition at line 1065 of file lib8tion.h.

1066{
1067 uint32_t ms = GET_MILLIS();
1068 uint16_t s16;
1069 s16 = div1024_32_16( ms);
1070 return s16;
1071}
#define GET_MILLIS
The a number of functions need access to a millisecond counter in order to keep time.
Definition lib8tion.h:837
LIB8STATIC uint16_t div1024_32_16(uint32_t in32)
Helper routine to divide a 32-bit value by 1024, returning only the low 16 bits.
Definition lib8tion.h:1040

References div1024_32_16(), GET_MILLIS, and LIB8STATIC.

Referenced by INSTANTIATE_EVERY_N_TIME_PERIODS().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: