FastLED 3.9.15
Loading...
Searching...
No Matches
Timer Class Reference

Detailed Description

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 timer.h.

#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
 

The documentation for this class was generated from the following file: