OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::Timer Class Reference

Timer class. More...

#include <OgreTimerImp.h>

+ Inheritance diagram for Ogre::Timer:

Public Member Functions

 Timer ()
 
 Timer ()
 
 Timer ()
 
 Timer ()
 
 Timer ()
 
 Timer ()
 
 Timer ()
 Timer constructor.
 
 ~Timer ()
 
 ~Timer ()
 
 ~Timer ()
 
 ~Timer ()
 
 ~Timer ()
 
 ~Timer ()
 
 ~Timer ()
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset.
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset.
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset.
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset.
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset.
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset.
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset.
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset.
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset.
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset.
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset.
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset.
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset.
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset.
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured.
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured.
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info
 
voidoperator new (size_t sz, void *ptr)
 placement operator new
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
 
void reset ()
 Resets timer.
 
void reset ()
 Resets timer.
 
void reset ()
 Resets timer.
 
void reset ()
 Resets timer.
 
void reset ()
 Resets timer.
 
void reset ()
 Resets timer.
 
void reset ()
 Resets timer.
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer.
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer.
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer.
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer.
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer.
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer.
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer.
 

Detailed Description

Timer class.

Constructor & Destructor Documentation

◆ Timer() [1/7]

Ogre::Timer::Timer ( )

◆ ~Timer() [1/7]

Ogre::Timer::~Timer ( )

◆ Timer() [2/7]

Ogre::Timer::Timer ( )

◆ ~Timer() [2/7]

Ogre::Timer::~Timer ( )

◆ Timer() [3/7]

Ogre::Timer::Timer ( )

◆ ~Timer() [3/7]

Ogre::Timer::~Timer ( )

◆ Timer() [4/7]

Ogre::Timer::Timer ( )

◆ ~Timer() [4/7]

Ogre::Timer::~Timer ( )

◆ Timer() [5/7]

Ogre::Timer::Timer ( )

◆ ~Timer() [5/7]

Ogre::Timer::~Timer ( )

◆ Timer() [6/7]

Ogre::Timer::Timer ( )

◆ ~Timer() [6/7]

Ogre::Timer::~Timer ( )

◆ Timer() [7/7]

Ogre::Timer::Timer ( )

Timer constructor.

MUST be called on same thread that calls getMilliseconds()

◆ ~Timer() [7/7]

Ogre::Timer::~Timer ( )

Member Function Documentation

◆ getMicroseconds() [1/7]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicroseconds() [2/7]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicroseconds() [3/7]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicroseconds() [4/7]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicroseconds() [5/7]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicroseconds() [6/7]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicroseconds() [7/7]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicrosecondsCPU() [1/7]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMicrosecondsCPU() [2/7]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMicrosecondsCPU() [3/7]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMicrosecondsCPU() [4/7]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMicrosecondsCPU() [5/7]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMicrosecondsCPU() [6/7]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMicrosecondsCPU() [7/7]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMilliseconds() [1/7]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMilliseconds() [2/7]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMilliseconds() [3/7]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMilliseconds() [4/7]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMilliseconds() [5/7]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMilliseconds() [6/7]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMilliseconds() [7/7]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMillisecondsCPU() [1/7]

uint64 Ogre::Timer::getMillisecondsCPU ( )

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

◆ getMillisecondsCPU() [2/7]

uint64 Ogre::Timer::getMillisecondsCPU ( )

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

◆ getMillisecondsCPU() [3/7]

uint64 Ogre::Timer::getMillisecondsCPU ( )

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

◆ getMillisecondsCPU() [4/7]

uint64 Ogre::Timer::getMillisecondsCPU ( )

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

◆ getMillisecondsCPU() [5/7]

uint64 Ogre::Timer::getMillisecondsCPU ( )

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

◆ getMillisecondsCPU() [6/7]

uint64 Ogre::Timer::getMillisecondsCPU ( )

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

◆ getMillisecondsCPU() [7/7]

uint64 Ogre::Timer::getMillisecondsCPU ( )

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

◆ operator delete() [1/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr)
inlineinherited

◆ operator delete() [2/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
const char ,
int  ,
const char  
)
inlineinherited

◆ operator delete() [3/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
void  
)
inlineinherited

◆ operator delete[]() [1/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr)
inlineinherited

◆ operator delete[]() [2/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr,
const char ,
int  ,
const char  
)
inlineinherited

◆ operator new() [1/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

◆ operator new() [2/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char file,
int  line,
const char func 
)
inlineinherited

operator new, with debug line info

◆ operator new() [3/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void ptr 
)
inlineinherited

placement operator new

◆ operator new[]() [1/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

◆ operator new[]() [2/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char file,
int  line,
const char func 
)
inlineinherited

array operator new, with debug line info

◆ reset() [1/7]

void Ogre::Timer::reset ( )

Resets timer.

◆ reset() [2/7]

void Ogre::Timer::reset ( )

Resets timer.

◆ reset() [3/7]

void Ogre::Timer::reset ( )

Resets timer.

◆ reset() [4/7]

void Ogre::Timer::reset ( )

Resets timer.

◆ reset() [5/7]

void Ogre::Timer::reset ( )

Resets timer.

◆ reset() [6/7]

void Ogre::Timer::reset ( )

Resets timer.

◆ reset() [7/7]

void Ogre::Timer::reset ( )

Resets timer.

◆ setOption() [1/7]

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
strKeyThe name of the option to set
pValueA 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.

◆ setOption() [2/7]

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
strKeyThe name of the option to set
pValueA 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.

◆ setOption() [3/7]

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
strKeyThe name of the option to set
pValueA 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.

◆ setOption() [4/7]

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
strKeyThe name of the option to set
pValueA 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.

◆ setOption() [5/7]

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
strKeyThe name of the option to set
pValueA 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.

◆ setOption() [6/7]

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
strKeyThe name of the option to set
pValueA 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.

◆ setOption() [7/7]

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
strKeyThe name of the option to set
pValueA 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.

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