This reference page is linked to from the following overview topics: Tips and Tricks.
#include <PerformanceTools.h>
Just a helper class to record how long a task takes. Just call this at the start and EndTimer at the end will return the amount of time that has passed in milliseconds.
Public Member Functions |
|
| UtilExport void | StartTimer () |
| This methods let you start a local timer.
|
|
| UtilExport double | EndTimer () |
| This methods returns the amount of time in
milliseconds that has passed since StartTimer. |
|
Static Public Member Functions |
|
| static UtilExport void | StartTimerGlobal (unsigned int id) |
| These are global timers that can be started
and stopped in different scopes. |
|
| static UtilExport double | EndTimerGlobal (unsigned int id) |
| This ends a timer matching the ID and
returns the accumlated time passed in MS. |
|
| static UtilExport void | ClearTimerGlobal (unsigned int id) |
| This clears a timer matching the ID.
|
|
| static UtilExport double | GetTimerGlobal (unsigned int id) |
| This returns the amount of time passed for
the matching ID. |
|
| UtilExport void StartTimer | ( | ) |
This methods let you start a local timer.
Use these 2 methods if you are just timing a local block once
| UtilExport double EndTimer | ( | ) |
This methods returns the amount of time in milliseconds that has passed since StartTimer.
| static UtilExport void StartTimerGlobal | ( | unsigned int | id | ) | [static] |
These are global timers that can be started and stopped in different scopes.
There are 1000 ids and the first 100 are reserverd for internal
This starts a timer matching the ID
| static UtilExport double EndTimerGlobal | ( | unsigned int | id | ) | [static] |
This ends a timer matching the ID and returns the accumlated time passed in MS.
| static UtilExport void ClearTimerGlobal | ( | unsigned int | id | ) | [static] |
This clears a timer matching the ID.
| static UtilExport double GetTimerGlobal | ( | unsigned int | id | ) | [static] |
This returns the amount of time passed for the matching ID.