|
IntrOS
|
steady clock More...
#include <osclock.h>
Public Types | |
| using | rep = cnt_t |
| type of the system time (cnt_t) | |
| using | period = std::ratio<1, OS_FREQUENCY> |
| tick of the system timer (1 / OS_FREQUENCY s) | |
| using | duration = std::chrono::duration<rep, period> |
| duration in ticks of the system timer | |
| using | time_point = std::chrono::time_point<Clock> |
| time point of the system time | |
Static Public Member Functions | |
| static time_point | now () |
| current system time (sys_time()) | |
| template<class _Rep, class _Period> | |
| static constexpr rep | count (const std::chrono::duration< _Rep, _Period > &_delay) |
| delay in ticks, rounded up to whole ticks; negative delay: IMMEDIATE, delay out of range: INFINITE | |
| template<class _Duration> | |
| static constexpr rep | until (const std::chrono::time_point< Clock, _Duration > &_time) |
| time point in ticks, rounded up to whole ticks (only a time point of this clock) | |
| static constexpr rep | count (const rep _delay) |
| delay in ticks | |
| static constexpr rep | until (const rep _time) |
| time point in ticks | |
Static Public Attributes | |
| static constexpr bool | is_steady = true |
| the system time is monotonic | |
steady clock