Project

General

Profile

Public Member Functions

 Timer ()
virtual ~Timer ()
void Reset ()
unsigned long GetMilliseconds ()
unsigned long GetMicroseconds ()
unsigned long GetMillisecondsCPU ()
unsigned long GetMicrosecondsCPU ()

Protected Attributes

clock_t zeroClock
DWORD mStartTick
LONGLONG mLastTime
LARGE_INTEGER mStartTime
LARGE_INTEGER mFrequency

Detailed Description

Definition at line 17 of file dTimer.h.

Constructor & Destructor Documentation

Timer::Timer ( )

Constructor.

Definition at line 10 of file dTimer.cpp.

Timer::~Timer ( )
virtual

Destructor

Definition at line 15 of file dTimer.cpp.

Member Function Documentation

unsigned long Timer::GetMicroseconds ( )

Give the elapsed time in microseconds since initialisation or since the last reset

Definition at line 61 of file dTimer.cpp.

unsigned long Timer::GetMicrosecondsCPU ( )

Give the elapsed time in microseconds since initialisation or since the last reset, only CPU time measured

Definition at line 96 of file dTimer.cpp.

unsigned long Timer::GetMilliseconds ( )

Give the elapsed time in milliseconds since initialisation or since the last reset

Definition at line 30 of file dTimer.cpp.

unsigned long Timer::GetMillisecondsCPU ( )

Give the elapsed time in milliseconds since initialisation or since the last reset, only CPU time measured

Definition at line 90 of file dTimer.cpp.


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