FastLED 3.9.15
Loading...
Searching...
No Matches
timeout.h File Reference

Detailed Description

Generic timeout class for tracking elapsed time with rollover-safe arithmetic.

Provides a single generic Timeout class that works with any time units. The caller is responsible for providing timestamps in consistent units (e.g., from micros(), millis(), or any other monotonic counter).

Handles uint32_t timestamp rollover correctly using unsigned arithmetic.

Definition in file timeout.h.

#include "fl/stl/stdint.h"
#include "fl/stl/noexcept.h"
+ Include dependency graph for timeout.h:

Go to the source code of this file.

Classes

class  fl::Timeout
 Generic timeout timer with rollover-safe arithmetic. More...
 

Namespaces

namespace  fl
 Base definition for an LED controller.