
Public Types | |
| enum | ThreadAffinity { NoThreadAffinity, LockThreadToOneCPU } |
Public Member Functions | |
| CPerformanceCounter (ThreadAffinity threadAffinity=NoThreadAffinity) | |
| Constructs a timer with the specified thread affinity and starts it. | |
| 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.
| 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.
1.5.3