Timer class.
More...
#include <OgreTimerImp.h>
◆ Timer() [1/3]
◆ ~Timer() [1/3]
◆ Timer() [2/3]
◆ ~Timer() [2/3]
◆ Timer() [3/3]
◆ ~Timer() [3/3]
◆ setOption() [1/3]
bool Ogre::Timer::setOption |
( |
const String & |
strKey, |
|
|
const void * |
pValue |
|
) |
| |
|
inline |
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.
- Parameters
-
strKey | The name of the option to set |
pValue | A pointer to the value - the size should be calculated by the timer based on the key |
- Returns
- On success, true is returned.
- On failure, false is returned.
◆ reset() [1/3]
void Ogre::Timer::reset |
( |
| ) |
|
◆ getMilliseconds() [1/3]
unsigned long Ogre::Timer::getMilliseconds |
( |
| ) |
|
Returns milliseconds since initialisation or last reset.
◆ getMicroseconds() [1/3]
unsigned long Ogre::Timer::getMicroseconds |
( |
| ) |
|
Returns microseconds since initialisation or last reset.
◆ getMillisecondsCPU() [1/3]
unsigned long Ogre::Timer::getMillisecondsCPU |
( |
| ) |
|
Returns milliseconds since initialisation or last reset, only CPU time measured.
◆ getMicrosecondsCPU() [1/3]
unsigned long Ogre::Timer::getMicrosecondsCPU |
( |
| ) |
|
Returns microseconds since initialisation or last reset, only CPU time measured.
◆ setOption() [2/3]
bool Ogre::Timer::setOption |
( |
const String & |
strKey, |
|
|
const void * |
pValue |
|
) |
| |
|
inline |
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.
- Parameters
-
strKey | The name of the option to set |
pValue | A pointer to the value - the size should be calculated by the timer based on the key |
- Returns
- On success, true is returned.
- On failure, false is returned.
◆ reset() [2/3]
void Ogre::Timer::reset |
( |
| ) |
|
◆ getMilliseconds() [2/3]
unsigned long Ogre::Timer::getMilliseconds |
( |
| ) |
|
Returns milliseconds since initialisation or last reset.
◆ getMicroseconds() [2/3]
unsigned long Ogre::Timer::getMicroseconds |
( |
| ) |
|
Returns microseconds since initialisation or last reset.
◆ getMillisecondsCPU() [2/3]
unsigned long Ogre::Timer::getMillisecondsCPU |
( |
| ) |
|
Returns milliseconds since initialisation or last reset, only CPU time measured.
◆ getMicrosecondsCPU() [2/3]
unsigned long Ogre::Timer::getMicrosecondsCPU |
( |
| ) |
|
Returns microseconds since initialisation or last reset, only CPU time measured.
◆ setOption() [3/3]
bool Ogre::Timer::setOption |
( |
const String & |
strKey, |
|
|
const void * |
pValue |
|
) |
| |
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.
- Current options supported are:
-
"QueryAffinityMask" (DWORD): Set the thread affinity mask to be used to check the timer. If 'reset' has been called already this mask should overlap with the process mask that was in force at that point, and should be a power of two (a single core).
- Parameters
-
strKey | The name of the option to set |
pValue | A pointer to the value - the size should be calculated by the timer based on the key |
- Returns
- On success, true is returned.
- On failure, false is returned.
◆ reset() [3/3]
void Ogre::Timer::reset |
( |
| ) |
|
◆ getMilliseconds() [3/3]
unsigned long Ogre::Timer::getMilliseconds |
( |
| ) |
|
Returns milliseconds since initialisation or last reset.
◆ getMicroseconds() [3/3]
unsigned long Ogre::Timer::getMicroseconds |
( |
| ) |
|
Returns microseconds since initialisation or last reset.
◆ getMillisecondsCPU() [3/3]
unsigned long Ogre::Timer::getMillisecondsCPU |
( |
| ) |
|
Returns milliseconds since initialisation or last reset, only CPU time measured.
◆ getMicrosecondsCPU() [3/3]
unsigned long Ogre::Timer::getMicrosecondsCPU |
( |
| ) |
|
Returns microseconds since initialisation or last reset, only CPU time measured.
The documentation for this class was generated from the following files: