|
join 1.0
lightweight network framework library
|
monotonic clock policy (stable, adjusted, recommended default). More...
#include <clock.hpp>
Public Types | |
| using | Duration = std::chrono::nanoseconds |
| using | TimePoint = std::chrono::time_point<NanoClock> |
| using | Timer = BasicTimer<Monotonic> |
| using | Stats = BasicStats<Monotonic> |
Public Member Functions | |
| constexpr | Monotonic () 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. | |
monotonic clock policy (stable, adjusted, recommended default).
| using join::Monotonic::Duration = std::chrono::nanoseconds |
| using join::Monotonic::Stats = BasicStats<Monotonic> |
| using join::Monotonic::TimePoint = std::chrono::time_point<NanoClock> |
| using join::Monotonic::Timer = BasicTimer<Monotonic> |
|
constexprdefaultnoexcept |
default constructor.
|
inlinestaticnoexcept |
read the current time.
|
inlinestaticconstexprnoexcept |
get the POSIX clock identifier for this policy.