OGRE-Next  2.3
Object-Oriented Graphics Rendering Engine
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 constructor. More...
 
 ~Timer ()
 
 ~Timer ()
 
 ~Timer ()
 
 ~Timer ()
 
 ~Timer ()
 
 ~Timer ()
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset. More...
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset. More...
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset. More...
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset. More...
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset. More...
 
uint64 getMicroseconds ()
 Returns microseconds since initialisation or last reset. More...
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured. More...
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured. More...
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured. More...
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured. More...
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured. More...
 
uint64 getMicrosecondsCPU ()
 Returns microseconds since initialisation or last reset, only CPU time measured. More...
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset. More...
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset. More...
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset. More...
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset. More...
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset. More...
 
uint64 getMilliseconds ()
 Returns milliseconds since initialisation or last reset. More...
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured. More...
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured. More...
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured. More...
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured. More...
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured. More...
 
uint64 getMillisecondsCPU ()
 Returns milliseconds since initialisation or last reset, only CPU time measured. More...
 
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 *)
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void reset ()
 Resets timer. More...
 
void reset ()
 Resets timer. More...
 
void reset ()
 Resets timer. More...
 
void reset ()
 Resets timer. More...
 
void reset ()
 Resets timer. More...
 
void reset ()
 Resets timer. More...
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer. More...
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer. More...
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer. More...
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer. More...
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer. More...
 
bool setOption (const String &strKey, const void *pValue)
 Method for setting a specific option of the Timer. More...
 

Detailed Description

Timer class.

Constructor & Destructor Documentation

◆ Timer() [1/6]

Ogre::Timer::Timer ( )

◆ ~Timer() [1/6]

Ogre::Timer::~Timer ( )

◆ Timer() [2/6]

Ogre::Timer::Timer ( )

◆ ~Timer() [2/6]

Ogre::Timer::~Timer ( )

◆ Timer() [3/6]

Ogre::Timer::Timer ( )

◆ ~Timer() [3/6]

Ogre::Timer::~Timer ( )

◆ Timer() [4/6]

Ogre::Timer::Timer ( )

◆ ~Timer() [4/6]

Ogre::Timer::~Timer ( )

◆ Timer() [5/6]

Ogre::Timer::Timer ( )

◆ ~Timer() [5/6]

Ogre::Timer::~Timer ( )

◆ Timer() [6/6]

Ogre::Timer::Timer ( )

Timer constructor.

MUST be called on same thread that calls getMilliseconds()

◆ ~Timer() [6/6]

Ogre::Timer::~Timer ( )

Member Function Documentation

◆ getMicroseconds() [1/6]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicroseconds() [2/6]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicroseconds() [3/6]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicroseconds() [4/6]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicroseconds() [5/6]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicroseconds() [6/6]

uint64 Ogre::Timer::getMicroseconds ( )

Returns microseconds since initialisation or last reset.

◆ getMicrosecondsCPU() [1/6]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMicrosecondsCPU() [2/6]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMicrosecondsCPU() [3/6]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMicrosecondsCPU() [4/6]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMicrosecondsCPU() [5/6]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMicrosecondsCPU() [6/6]

uint64 Ogre::Timer::getMicrosecondsCPU ( )

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

◆ getMilliseconds() [1/6]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMilliseconds() [2/6]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMilliseconds() [3/6]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMilliseconds() [4/6]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMilliseconds() [5/6]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMilliseconds() [6/6]

uint64 Ogre::Timer::getMilliseconds ( )

Returns milliseconds since initialisation or last reset.

◆ getMillisecondsCPU() [1/6]

uint64 Ogre::Timer::getMillisecondsCPU ( )

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

◆ getMillisecondsCPU() [2/6]

uint64 Ogre::Timer::getMillisecondsCPU ( )

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

◆ getMillisecondsCPU() [3/6]

uint64 Ogre::Timer::getMillisecondsCPU ( )

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

◆ getMillisecondsCPU() [4/6]

uint64 Ogre::Timer::getMillisecondsCPU ( )

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

◆ getMillisecondsCPU() [5/6]

uint64 Ogre::Timer::getMillisecondsCPU ( )

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

◆ getMillisecondsCPU() [6/6]

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/6]

void Ogre::Timer::reset ( )

Resets timer.

◆ reset() [2/6]

void Ogre::Timer::reset ( )

Resets timer.

◆ reset() [3/6]

void Ogre::Timer::reset ( )

Resets timer.

◆ reset() [4/6]

void Ogre::Timer::reset ( )

Resets timer.

◆ reset() [5/6]

void Ogre::Timer::reset ( )

Resets timer.

◆ reset() [6/6]

void Ogre::Timer::reset ( )

Resets timer.

◆ setOption() [1/6]

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/6]

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/6]

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/6]

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/6]

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/6]

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 file: