- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions

# Timer Class Reference

This reference page is linked to from the following overview topics: Miscellaneous Utilities.

Search for all occurrences

## Detailed Description

Helps finding performance issues. See the MB_TIMER macro for more details.

Definition at line 381 of file kernel.h.

`#include <kernel.h>`

List of all members.

## 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.

## Constructor & Destructor Documentation

Timer | ( | const char * | sName,
|  | int & | iIndex
| ) |  |

Use the MB_TIMER macro to construct timer objects instead of using this constructor.

~Timer | ( | void |  | ) |

## Member Function Documentation

static unsigned int Current | ( | void |  | ) | `[static]`

Search for all occurrences

Used internally only.

static void ResetAll | ( | void |  | ) | `[static]`

Search for all occurrences

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]`

Search for all occurrences

This function dumps all the collected data to the log.

The documentation for this class was generated from the following file:

- Mudbox/kernel.h

Timer Timer Timer Timer Timer Timer Timer Timer Timer Timer
Timer Timer Timer Timer Timer Timer Timer Timer Timer Timer