class ProfilerCPU::TimerPrecise

Timer class responsible for tracking number of elapsed CPU cycles.

Public

Constructors

TimerPrecise

TimerPrecise()

Methods

Start

void Start()

Starts the counter marking the current number of executed CPU cycles since CPU was started.

Stop

void Stop()

Ends the counter and calculates the number of CPU cycles between now and the start time.

Reset

void Reset()

Resets the cycle count to zero.

Fields

Cycles

u64 Cycles

Private

Methods

staticGetNumCycles

static inline u64 GetNumCycles()

Queries the CPU for the current number of CPU cycles executed since the program was started.

Fields

startCycles

u64 startCycles