|
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.
Definition at line 12 of file simple_timer.h.
#include <simple_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 |