PIPS
|
Counter that provides a fairly accurate timing mechanism for both windows and linux. More...
#include <Timer.h>
Public Member Functions | |
CPerfCounter () | |
Constructor for CPerfCounter that initializes the class. More... | |
~CPerfCounter () | |
Destructor for CPerfCounter that cleans up the class. More... | |
void | Start (void) |
Start the timer. More... | |
void | Stop (void) |
Stop the timer. More... | |
void | Reset (void) |
Reset the timer to 0. More... | |
double | GetElapsedTime (void) |
Private Attributes | |
i64 | _freq |
i64 | _clocks |
i64 | _start |
Counter that provides a fairly accurate timing mechanism for both windows and linux.
This timer is used extensively in all the samples.
CPerfCounter::CPerfCounter | ( | ) |
Constructor for CPerfCounter that initializes the class.
CPerfCounter::~CPerfCounter | ( | ) |
Destructor for CPerfCounter that cleans up the class.
double CPerfCounter::GetElapsedTime | ( | void | ) |