FastLED 3.9.15
Loading...
Searching...
No Matches
Timekeeping Functions

Detailed Description

Tools for tracking and working with time.

Macros

#define GET_MILLIS   fl::millis
 The a number of functions need access to a millisecond counter in order to keep time.
 
#define USE_GET_MILLISECOND_TIMER
 Set this flag to use the get_millisecond_timer() function in place of the default millis() function.
 

Functions

LIB8STATIC u16 fl::bseconds16 () FL_NOEXCEPT
 Returns the current time-since-boot in "binary seconds", which are actually 1024/1000 of a second long.
 
LIB8STATIC u16 fl::div1024_32_16 (u32 in32) FL_NOEXCEPT
 Helper routine to divide a 32-bit value by 1024, returning only the low 16 bits.
 
LIB8STATIC u8 fl::hours8 () FL_NOEXCEPT
 Return the current hours since boot in an 8-bit value.
 
LIB8STATIC u16 fl::minutes16 () FL_NOEXCEPT
 Return the current minutes since boot in a 16-bit value.
 
LIB8STATIC u16 fl::seconds16 () FL_NOEXCEPT
 Return the current seconds since boot in a 16-bit value.