Public Types | |
enum | ThreadAffinity { NoThreadAffinity, LockThreadToOneCPU } |
Public Member Functions | |
CPerformanceCounter (ThreadAffinity threadAffinity=NoThreadAffinity) | |
Constructs a timer with the specified thread affinity and starts it. | |
CPerformanceCounter (const CPerformanceCounter &rhs) | |
CPerformanceCounter & | operator= (const CPerformanceCounter &rhs) |
LARGE_INTEGER | GetRawCounter () const |
LARGE_INTEGER | GetCounter () const |
LARGE_INTEGER | GetFrequency () const |
Milliseconds | GetCounterMilliseconds () const |
void | Reset () |
Resets a counter. | |
DWORD | GetElapsedTimeAsDWORD () const |
Gets the elapsed time since the counter was either constructed or reset. | |
LARGE_INTEGER | GetElapsedTime () const |
Gets the elapsed time since the counter was either constructed or reset. | |
_tstring | GetElapsedTimeAsString () const |
Gets the elapsed time since the counter was either constructed or reset. |
enum ThreadAffinity |
CPerformanceCounter | ( | ThreadAffinity | threadAffinity = NoThreadAffinity |
) | [explicit] |
Constructs a timer with the specified thread affinity and starts it.
CPerformanceCounter | ( | const CPerformanceCounter & | rhs | ) |
CPerformanceCounter& operator= | ( | const CPerformanceCounter & | rhs | ) |
LARGE_INTEGER GetRawCounter | ( | ) | const |
LARGE_INTEGER GetCounter | ( | ) | const |
LARGE_INTEGER GetFrequency | ( | ) | const |
Milliseconds GetCounterMilliseconds | ( | ) | const |
void Reset | ( | ) |
Resets a counter.
DWORD GetElapsedTimeAsDWORD | ( | ) | const |
Gets the elapsed time since the counter was either constructed or reset.
LARGE_INTEGER GetElapsedTime | ( | ) | const |
Gets the elapsed time since the counter was either constructed or reset.
_tstring GetElapsedTimeAsString | ( | ) | const |
Gets the elapsed time since the counter was either constructed or reset.