Rise
The Vieneo Province
CStopWatch Class Reference

#include <performance.h>

Collaboration diagram for CStopWatch:
[legend]

Public Member Functions

 CStopWatch (Logger *prmLogger)
 
void startTimer ()
 
void stopTimer ()
 
void Report (const char *caption) const
 

Private Member Functions

double LIToSecs (LARGE_INTEGER &L)
 
void getElapsedTime ()
 

Private Attributes

Loggerlogger
 
double fm_min
 
double fm_max
 
double fm_avg
 
unsigned int fm_count
 
LARGE_INTEGER start
 
LARGE_INTEGER stop
 
LARGE_INTEGER frequency
 

Detailed Description

Definition at line 12 of file performance.h.

Constructor & Destructor Documentation

◆ CStopWatch()

CStopWatch::CStopWatch ( Logger prmLogger)

Definition at line 4 of file performance.cpp.

Member Function Documentation

◆ getElapsedTime()

void CStopWatch::getElapsedTime ( )
private

Definition at line 33 of file performance.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LIToSecs()

double CStopWatch::LIToSecs ( LARGE_INTEGER &  L)
private

Definition at line 17 of file performance.cpp.

Here is the caller graph for this function:

◆ Report()

void CStopWatch::Report ( const char *  caption) const

Definition at line 46 of file performance.cpp.

Here is the call graph for this function:

◆ startTimer()

void CStopWatch::startTimer ( )

Definition at line 22 of file performance.cpp.

◆ stopTimer()

void CStopWatch::stopTimer ( )

Definition at line 27 of file performance.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ fm_avg

double CStopWatch::fm_avg
private

Definition at line 19 of file performance.h.

◆ fm_count

unsigned int CStopWatch::fm_count
private

Definition at line 20 of file performance.h.

◆ fm_max

double CStopWatch::fm_max
private

Definition at line 18 of file performance.h.

◆ fm_min

double CStopWatch::fm_min
private

Definition at line 17 of file performance.h.

◆ frequency

LARGE_INTEGER CStopWatch::frequency
private

Definition at line 24 of file performance.h.

◆ logger

Logger* CStopWatch::logger
private

Definition at line 15 of file performance.h.

◆ start

LARGE_INTEGER CStopWatch::start
private

Definition at line 22 of file performance.h.

◆ stop

LARGE_INTEGER CStopWatch::stop
private

Definition at line 23 of file performance.h.


The documentation for this class was generated from the following files: