FastLED 3.10.8
Loading...
Searching...
No Matches

◆ at_framerate() [2/2]

Handle fl::task::at_framerate ( int fps,
const TracePoint & trace )

Creates a traced task that runs at a fixed frame rate.

Parameters
fpsNumber of executions per second.
traceLocation where the task was created.
Returns
A handle for configuring and controlling the task.

Definition at line 332 of file task.cpp.hpp.

332 {
333 return Handle(fl::make_shared<TimeTask>(TaskType::kAtFramerate, 1000 / fps, trace));
334}
Task Handle with fluent API (was class fl::task, renamed to avoid namespace collision)
Definition task.h:156
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:423
@ kAtFramerate
Runs at a fixed number of times per second.
Definition task.h:119

References fl::FL_NO_EXCEPT, kAtFramerate, and fl::adl_barrier::make_shared().

+ Here is the call graph for this function: