|
join 1.0
lightweight network framework library
|
raw monotonic clock policy (raw hardware clock, may drift). More...
#include <clock.hpp>
Public Types | |
| using | Duration = std::chrono::nanoseconds |
| using | TimePoint = std::chrono::time_point<NanoClock> |
| using | Stats = BasicStats<MonotonicRaw> |
Public Member Functions | |
| constexpr | MonotonicRaw () noexcept=default |
| default constructor. | |
Static Public Member Functions | |
| static constexpr int | type () noexcept |
| get the POSIX clock identifier for this policy. | |
| static TimePoint | now () noexcept |
| read the current time. | |
raw monotonic clock policy (raw hardware clock, may drift).
| using join::MonotonicRaw::Duration = std::chrono::nanoseconds |
| using join::MonotonicRaw::TimePoint = std::chrono::time_point<NanoClock> |
|
constexprdefaultnoexcept |
default constructor.
|
inlinestaticnoexcept |
read the current time.
|
inlinestaticconstexprnoexcept |
get the POSIX clock identifier for this policy.