FastLED 3.9.15
Loading...
Searching...
No Matches

◆ start()

void Timer::start ( uint32_t now,
uint32_t duration )
inline

Start the timer with a specific duration.

Parameters
nowCurrent time in milliseconds (typically from millis())
durationHow long the timer should run in milliseconds

Definition at line 27 of file timer.h.

27 {
28 start_time = now;
29 this->duration = duration;
30 running = true;
31 }
bool running
Definition timer.h:57
uint32_t start_time
Definition timer.h:55
uint32_t duration
Definition timer.h:56

References duration, running, and start_time.