17#define HUGE_VAL_IMMEDIATE 1.7976931348623157e+308
69 LARGE_INTEGER m_startTick;
73 double m_elapsedSeconds;
74 unsigned long m_ticksPerSeconds;
138 unsigned long m_operationCount;
Utility for measuring the frequency (operations per second) of a repeated operation.
MxFrequencyMeter()
Constructs a new MxFrequencyMeter with zeroed counters.
void IncreaseOperationCount(unsigned long delta)
Increases the operation count by the specified delta.
void EndOperation()
Marks the end of a measured operation and increments the count.
void Reset()
Resets the operation counter and stopwatch to zero.
void StartOperation()
Marks the beginning of a measured operation.
double ElapsedSeconds() const
Returns the total elapsed seconds since the last Reset().
unsigned long OperationCount() const
Returns the total number of completed operations.
double Frequency() const
Returns the measured frequency (operations per elapsed second).
Measures elapsed wall clock time using high resolution performance counters.
unsigned long TicksPerSeconds() const
Queries and returns the number of performance counter ticks per second.
void Stop()
Stops timing and accumulates the elapsed interval to m_elapsedSeconds.
void Reset()
Resets the stopwatch to zero.
double ElapsedSeconds() const
Returns the total accumulated elapsed time in seconds.
~MxStopWatch()
Destructor.
MxStopWatch()
Default constructor.
void Start()
Starts (or resumes) timing from the current moment.