|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Steady clock based on FreeRTOS tick count. More...
Public Types | |
| using | rep = TickType_t |
| using | period = std::ratio< 1, configTICK_RATE_HZ > |
| using | duration = std::chrono::duration< rep, period > |
| using | time_point = std::chrono::time_point< tick_clock > |
Static Public Member Functions | |
| static time_point | now () noexcept |
| Returns the current tick count as a time_point. | |
| static time_point | now_from_isr () noexcept |
| Returns the current tick count as a time_point from ISR context. | |
Static Public Attributes | |
| static constexpr bool | is_steady = true |
Steady clock based on FreeRTOS tick count.
Provides a std::chrono-compatible clock with tick-based precision. The tick rate is determined by configTICK_RATE_HZ.
Definition at line 44 of file chrono.hpp.
| using idfxx::chrono::tick_clock::duration = std::chrono::duration<rep, period> |
Definition at line 47 of file chrono.hpp.
| using idfxx::chrono::tick_clock::period = std::ratio<1, configTICK_RATE_HZ> |
Definition at line 46 of file chrono.hpp.
Definition at line 45 of file chrono.hpp.
| using idfxx::chrono::tick_clock::time_point = std::chrono::time_point<tick_clock> |
Definition at line 48 of file chrono.hpp.
|
inlinestaticnoexcept |
Returns the current tick count as a time_point.
Definition at line 55 of file chrono.hpp.
|
inlinestaticnoexcept |
Returns the current tick count as a time_point from ISR context.
Definition at line 61 of file chrono.hpp.
Definition at line 49 of file chrono.hpp.