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

◆ TimeTask()

fl::task::TimeTask::TimeTask ( TaskType type,
int interval_ms,
optional< TracePoint > trace = nullopt )
inline

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

118 , mType(type)
120 , mTraceLabel(trace ? make_unique<string>(make_trace_label(*trace)) : nullptr)
121 // Use (max)() to prevent macro expansion by Arduino.h's max macro
TaskType type() const override
Definition task.cpp.hpp:150
int interval_ms() const override
Definition task.cpp.hpp:151
unique_ptr< string > mTraceLabel
Definition task.cpp.hpp:204
string make_trace_label(const TracePoint &trace)
Definition task.cpp.hpp:15
fl::enable_if<!fl::is_array< T >::value, unique_ptr< T > >::type make_unique(Args &&... args) FL_NOEXCEPT
Definition unique_ptr.h:261
static constexpr T max() FL_NOEXCEPT
Definition limits.h:108

References interval_ms(), fl::make_unique(), fl::max(), mIntervalMs, mLastRunTime, mTaskId, mTraceLabel, mType, fl::nullopt, and type().

+ Here is the call graph for this function: