High resolution clock.
More...
#include <b2bits/core/HRClock.h>
represents a time interval, simply difference: (time_point - time_point)
represents a point in time, in timer ticks
template<class Duration >
static Duration B2bits::HRClock::duration_cast |
( |
duration |
d | ) |
|
|
inlinestatic |
converts a HRClock::duration to a duration of different type (e.g. std::chrono::duration)
template<class Duration >
static duration B2bits::HRClock::duration_cast |
( |
const Duration |
d | ) |
|
|
inlinestatic |
converts a duration of different types(e.g. std::chrono::duration) to HRClock::duration
template<class Duration >
static Duration B2bits::HRClock::elapsed |
( |
time_point |
t | ) |
|
|
inlinestatic |
returns duration elapsed since a particular HRClock::timepoint
static u64 B2bits::HRClock::frequency |
( |
| ) |
|
|
staticnoexcept |
returns timer frequency - number of timer ticks per second
returns timepoint representing the current value of the clock