FastLED 3.9.15
|
A simple timer utility class for tracking timed events.
This class provides basic timer functionality for animations and effects. It can be used to track whether a specific duration has elapsed since the timer was started.
#include <timer.h>
Public Member Functions | |
Timer () | |
Construct a new Timer object. | |
void | start (uint32_t now, uint32_t duration) |
Start the timer with a specific duration. | |
bool | update (uint32_t now) |
Update the timer state based on current time. | |
Private Attributes | |
uint32_t | duration |
bool | running |
uint32_t | start_time |