class ProfilerCPU::Timer

Timer class responsible for tracking elapsed time.

Public

Constructors

Timer

Timer()

Methods

Start

void Start()

Sets the start time for the timer.

Stop

void Stop()

Stops the timer and calculates the elapsed time from start time to now.

Reset

void Reset()

Resets the elapsed time to zero.

Fields

Time

double Time

Private

Methods

GetCurrentTime

inline double GetCurrentTime() const

Returns time elapsed since CPU was started in millseconds.

Fields

startTime

double startTime

mHRClock

std::chrono::high_resolution_clock mHRClock