Nugget
|
Functions | |
consteval uint32_t | operator""_ns (unsigned long long int value) |
Literal operators for time units. | |
consteval uint32_t | operator""_us (unsigned long long int value) |
consteval uint32_t | operator""_ms (unsigned long long int value) |
consteval uint32_t | operator""_s (unsigned long long int value) |
consteval uint32_t | operator""_ns (long double value) |
consteval uint32_t | operator""_us (long double value) |
consteval uint32_t | operator""_ms (long double value) |
consteval uint32_t | operator""_s (long double value) |
consteval uint32_t psyqo::timer_literals::operator""_ms | ( | long double | value | ) |
consteval uint32_t psyqo::timer_literals::operator""_ns | ( | long double | value | ) |
Literal operators for time units.
These operators can be used to specify time units suitable for the GPU's armTimer
and armPeriodicTimer
methods. For example, gpu().armPeriodicTimer(1_s, callback)
will create a timer that fires every second.
consteval uint32_t psyqo::timer_literals::operator""_s | ( | long double | value | ) |
consteval uint32_t psyqo::timer_literals::operator""_us | ( | long double | value | ) |