This reference page is linked to from the following overview topics: Miscellaneous Utilities.
Helps finding performance issues. See the MB_TIMER macro for more details.
#include <kernel.h>
Public Member Functions |
|
| Timer (const char *sName, int &iIndex) | |
| Use the MB_TIMER
macro to construct timer objects instead of using this constructor.
|
|
| ~Timer (void) | |
Static Public Member Functions |
|
| static unsigned int | Current (void) |
| Used internally only. |
|
| static void | ResetAll (void) |
| This function resets all the collected
information. |
|
| static void | LogAll (void) |
| This function dumps all the collected data
to the log. |
|
| Timer | ( | const char * | sName, |
| int & | iIndex | ||
| ) |
Use the MB_TIMER macro to construct timer objects instead of using this constructor.
| ~Timer | ( | void | ) |
| static unsigned int Current | ( | void | ) | [static] |
Used internally only.
| static void ResetAll | ( | void | ) | [static] |
This function resets all the collected information.
Typically you call this function before executing the operation which has to be measued (for example at the beginning of a stroke) and you call LogAll() at the end.
| static void LogAll | ( | void | ) | [static] |
This function dumps all the collected data to the log.