24 unsigned long long runs = 0;
36 unsigned long long end = __rdtsc();
#define FORCE_INLINE
Hint the compiler to always inline a function.
Definition config.h:26
Hardware cycle counter for x86/x86_64.
Definition cycle_counter_x86.h:21
void reset() noexcept
Reset accumulated cycles and run count to zero.
Definition cycle_counter_x86.h:43
unsigned long long start_cycles
Definition cycle_counter_x86.h:22
unsigned long long total_cycles
Definition cycle_counter_x86.h:23
FORCE_INLINE void stop() noexcept
Record the ending cycle count and accumulate.
Definition cycle_counter_x86.h:34
unsigned long long runs
Definition cycle_counter_x86.h:24
double avg_cycles() const
Return the average cycles per start/stop pair.
Definition cycle_counter_x86.h:50
FORCE_INLINE void start() noexcept
Record the starting cycle count (serialized).
Definition cycle_counter_x86.h:27