22 template <
typename Precision = std::chrono::microseconds>
26 typedef typename Precision::rep
rep;
27 typedef typename Precision::period
period;
34 static_assert( period::num == 1,
"The Precision of RdtscClock must be reducible to 1/N" );
36 "The Precision of RdtscClock must be at least std::chrono::milliseconds" );
62 auto dt_ref = std::chrono::duration_cast<std::chrono::milliseconds>( t2_ref - t1_ref ).count();
static rep do_calibrate() noexcept
static rep ticks_per_unit() noexcept
static rep calibrate() noexcept
Calibrate the RDTSC clock against wall time.
static time_point now() noexcept
A std::chrono compatible Clock using rdtsc as its timing source.
std::chrono::duration< rep, period > duration
std::chrono::time_point< RdtscClock > time_point
static constexpr bool is_steady
Header file for std:chrono::duration-based Counters.