# Ogre::Timer Class Reference

Timer class. More...

`#include <OgreTimerImp.h>`

List of all members.

## Public Member Functions

| Timer ()
| ~Timer ()
void | reset ()
| Resets timer.
unsigned long | getMilliseconds ()
| Returns milliseconds since initialisation or last reset.
unsigned long | getMicroseconds ()
| Returns microseconds since initialisation or last reset.
unsigned long | getMillisecondsCPU ()
| Returns milliseconds since initialisation or last reset, only CPU time measured.
unsigned long | getMicrosecondsCPU ()
| Returns microseconds since initialisation or last reset, only CPU time measured.
| Timer ()
| ~Timer ()
void | reset ()
| Resets timer.
unsigned long | getMilliseconds ()
| Returns milliseconds since initialisation or last reset.
unsigned long | getMicroseconds ()
| Returns microseconds since initialisation or last reset.
unsigned long | getMillisecondsCPU ()
| Returns milliseconds since initialisation or last reset, only CPU time measured.
unsigned long | getMicrosecondsCPU ()
| Returns microseconds since initialisation or last reset, only CPU time measured.
| Timer ()
| ~Timer ()
void | reset ()
| Resets timer.
unsigned long | getMilliseconds ()
| Returns milliseconds since initialisation or last reset.
unsigned long | getMicroseconds ()
| Returns microseconds since initialisation or last reset.
unsigned long | getMillisecondsCPU ()
| Returns milliseconds since initialisation or last reset, only CPU time measured.
unsigned long | getMicrosecondsCPU ()
| Returns microseconds since initialisation or last reset, only CPU time measured.

## Private Attributes

timeval | start
clock_t | zeroClock
timeval | start
DWORD | mStartTick
LONGLONG | mLastTime
LARGE_INTEGER | mStartTime
LARGE_INTEGER | mFrequency
DWORD | mProcMask
DWORD | mSysMask
HANDLE | mThread
DWORD | mQueryCount

## Detailed Description

Timer class.

Definition at line 38 of file GLX/OgreTimerImp.h.

## Constructor & Destructor Documentation

Ogre::Timer::Timer | ( |  | ) |

Ogre::Timer::~Timer | ( |  | ) |

Ogre::Timer::Timer | ( |  | ) |

Ogre::Timer::~Timer | ( |  | ) |

Ogre::Timer::Timer | ( |  | ) |

Ogre::Timer::~Timer | ( |  | ) |

## Member Function Documentation

unsigned long Ogre::Timer::getMicroseconds | ( |  | ) |

| Returns microseconds since initialisation or last reset.

unsigned long Ogre::Timer::getMicroseconds | ( |  | ) |

| Returns microseconds since initialisation or last reset.

unsigned long Ogre::Timer::getMicroseconds | ( |  | ) |

| Returns microseconds since initialisation or last reset.

unsigned long Ogre::Timer::getMicrosecondsCPU | ( |  | ) |

| Returns microseconds since initialisation or last reset, only CPU time measured.

unsigned long Ogre::Timer::getMicrosecondsCPU | ( |  | ) |

| Returns microseconds since initialisation or last reset, only CPU time measured.

unsigned long Ogre::Timer::getMicrosecondsCPU | ( |  | ) |

| Returns microseconds since initialisation or last reset, only CPU time measured.

unsigned long Ogre::Timer::getMilliseconds | ( |  | ) |

| Returns milliseconds since initialisation or last reset.

unsigned long Ogre::Timer::getMilliseconds | ( |  | ) |

| Returns milliseconds since initialisation or last reset.

unsigned long Ogre::Timer::getMilliseconds | ( |  | ) |

| Returns milliseconds since initialisation or last reset.

unsigned long Ogre::Timer::getMillisecondsCPU | ( |  | ) |

| Returns milliseconds since initialisation or last reset, only CPU time measured.

unsigned long Ogre::Timer::getMillisecondsCPU | ( |  | ) |

| Returns milliseconds since initialisation or last reset, only CPU time measured.

unsigned long Ogre::Timer::getMillisecondsCPU | ( |  | ) |

| Returns milliseconds since initialisation or last reset, only CPU time measured.

void Ogre::Timer::reset | ( |  | ) |

| Resets timer.

void Ogre::Timer::reset | ( |  | ) |

| Resets timer.

void Ogre::Timer::reset | ( |  | ) |

| Resets timer.

## Member Data Documentation

LARGE_INTEGER Ogre::Timer::mFrequency`[private]`

| Definition at line 57 of file WIN32/OgreTimerImp.h.

LONGLONG Ogre::Timer::mLastTime`[private]`

| Definition at line 55 of file WIN32/OgreTimerImp.h.

DWORD Ogre::Timer::mProcMask`[private]`

| Definition at line 59 of file WIN32/OgreTimerImp.h.

DWORD Ogre::Timer::mQueryCount`[private]`

| Definition at line 64 of file WIN32/OgreTimerImp.h.

DWORD Ogre::Timer::mStartTick`[private]`

| Definition at line 54 of file WIN32/OgreTimerImp.h.

LARGE_INTEGER Ogre::Timer::mStartTime`[private]`

| Definition at line 56 of file WIN32/OgreTimerImp.h.

DWORD Ogre::Timer::mSysMask`[private]`

| Definition at line 60 of file WIN32/OgreTimerImp.h.

HANDLE Ogre::Timer::mThread`[private]`

| Definition at line 62 of file WIN32/OgreTimerImp.h.

struct timeval Ogre::Timer::start`[private]`

| Definition at line 41 of file OSX/OgreTimerImp.h.

struct timeval Ogre::Timer::start`[private]`

| Definition at line 41 of file GLX/OgreTimerImp.h.

clock_t Ogre::Timer::zeroClock`[private]`

| Definition at line 52 of file WIN32/OgreTimerImp.h.

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

- GLX/OgreTimerImp.h
- OSX/OgreTimerImp.h
- WIN32/OgreTimerImp.h

Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Mon Aug 20 13:50:54 2007