#include <OgreTimerImp.h>
Public Member Functions | |
Timer () | |
~Timer () | |
bool | setOption (const String &strKey, const void *pValue) |
Method for setting a specific option of the 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 () | |
bool | setOption (const String &strKey, const void *pValue) |
Method for setting a specific option of the 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 constructor. | |
~Timer () | |
bool | setOption (const String &strKey, const void *pValue) |
Method for setting a specific option of the 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 |
clock_t | mZeroClock |
DWORD | mStartTick |
LONGLONG | mLastTime |
LARGE_INTEGER | mStartTime |
LARGE_INTEGER | mFrequency |
DWORD | mTimerMask |
Definition at line 38 of file GLX/OgreTimerImp.h.
|
|
|
|
|
|
|
|
|
Timer constructor. MUST be called on same thread that calls getMilliseconds() |
|
|
|
Returns microseconds since initialisation or last reset.
|
|
Returns microseconds since initialisation or last reset.
|
|
Returns microseconds since initialisation or last reset.
|
|
Returns microseconds since initialisation or last reset, only CPU time measured.
|
|
Returns microseconds since initialisation or last reset, only CPU time measured.
|
|
Returns microseconds since initialisation or last reset, only CPU time measured.
|
|
Returns milliseconds since initialisation or last reset.
|
|
Returns milliseconds since initialisation or last reset.
|
|
Returns milliseconds since initialisation or last reset.
|
|
Returns milliseconds since initialisation or last reset, only CPU time measured.
|
|
Returns milliseconds since initialisation or last reset, only CPU time measured.
|
|
Returns milliseconds since initialisation or last reset, only CPU time measured.
|
|
Resets timer.
|
|
Resets timer.
|
|
Resets timer.
|
|
Method for setting a specific option of the Timer. These options are usually specific for a certain implementation of the Timer class, and may (and probably will) not exist across different implementations. reset() must be called after all setOption() calls.
|
|
Method for setting a specific option of the Timer. These options are usually specific for a certain implementation of the Timer class, and may (and probably will) not exist across different implementations. reset() must be called after all setOption() calls.
Definition at line 61 of file OSX/OgreTimerImp.h. |
|
Method for setting a specific option of the Timer. These options are usually specific for a certain implementation of the Timer class, and may (and probably will) not exist across different implementations. reset() must be called after all setOption() calls.
Definition at line 61 of file GLX/OgreTimerImp.h. |
|
Definition at line 55 of file WIN32/OgreTimerImp.h. |
|
Definition at line 53 of file WIN32/OgreTimerImp.h. |
|
Definition at line 52 of file WIN32/OgreTimerImp.h. |
|
Definition at line 54 of file WIN32/OgreTimerImp.h. |
|
Definition at line 57 of file WIN32/OgreTimerImp.h. |
|
Definition at line 50 of file WIN32/OgreTimerImp.h. |
|
Definition at line 41 of file OSX/OgreTimerImp.h. |
|
Definition at line 41 of file GLX/OgreTimerImp.h. |
|
Definition at line 42 of file OSX/OgreTimerImp.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Thu Mar 6 09:46:31 2008