FastLED 3.9.15
Loading...
Searching...
No Matches
time_functions.h File Reference

Detailed Description

Timekeeping helper functions — seconds, minutes, hours, bseconds.

Definition in file time_functions.h.

#include "fl/stl/int.h"
#include "fl/stl/chrono.h"
#include "fl/math/lib8static.h"
#include "platforms/is_platform.h"
#include "fl/stl/noexcept.h"
+ Include dependency graph for time_functions.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fl
 Base definition for an LED controller.
 

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.