Timer Class Reference

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



Detailed Description

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

Definition at line 749 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]

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.


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

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