|
FastLED 3.9.15
|
FastLED chrono implementation - duration types for time measurements.
This header provides a minimal chrono implementation compatible with std::chrono, allowing FastLED to use duration types without directly depending on <chrono>. The implementation is intentionally compatible with std::chrono for interoperability.
Definition in file chrono.h.
Include dependency graph for chrono.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | fl::chrono::duration< Rep, Period > |
| Represents a time duration. More... | |
| struct | fl::chrono::steady_clock |
| Monotonic clock that never goes backwards. More... | |
| struct | fl::chrono::system_clock |
| Wall clock (may not be monotonic) More... | |
| class | fl::chrono::time_point< Clock, Duration > |
| Represents a point in time relative to a clock. More... | |
Namespaces | |
| namespace | fl |
| Base definition for an LED controller. | |
| namespace | fl::chrono |
Typedefs | |
| using | fl::chrono::hours = duration<fl::i32, fl::ratio<3600>> |
| Hours - duration with period of 3600 seconds. | |
| using | fl::chrono::microseconds = duration<fl::i64, fl::micro> |
| Microseconds - duration with period of 1/1,000,000 seconds. | |
| using | fl::chrono::milliseconds = duration<fl::i64, fl::milli> |
| Milliseconds - duration with period of 1/1,000 seconds. | |
| using | fl::chrono::minutes = duration<fl::i32, fl::ratio<60>> |
| Minutes - duration with period of 60 seconds. | |
| using | fl::chrono::nanoseconds = duration<fl::i64, fl::nano> |
| Nanoseconds - duration with period of 1/1,000,000,000 seconds. | |
| using | fl::chrono::seconds = duration<fl::i64> |
| Seconds - duration with period of 1 second. | |
Functions | |
| template<typename ToDuration, typename Rep, typename Period> | |
| constexpr ToDuration | fl::chrono::duration_cast (const duration< Rep, Period > &d) FL_NOEXCEPT |
| Cast one duration type to another. | |
| fl::u32 | fl::micros () FL_NOEXCEPT |
| Universal microsecond timer - returns microseconds since system startup. | |
| fl::u32 | fl::millis () FL_NOEXCEPT |
| Universal millisecond timer - returns milliseconds since system startup. | |
| fl::u64 | fl::millis64 () FL_NOEXCEPT |
| 64-bit millisecond timer - returns milliseconds since system startup without wraparound | |
| fl::u64 | fl::time () FL_NOEXCEPT |
| Alias for millis64() - returns 64-bit millisecond time. | |