OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::Timer Class Reference

Timer class. More...

#include <OgreTimerImp.h>

+ Inheritance diagram for Ogre::Timer:
+ Collaboration diagram for Ogre::Timer:

Public Member Functions

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

Private Member Functions

DWORD GetTickCount ()
 

Private Attributes

LARGE_INTEGER mFrequency
 
LONGLONG mLastTime
 
DWORD mStartTick
 
LARGE_INTEGER mStartTime
 
DWORD_PTR mTimerMask
 
clock_t mZeroClock
 
struct timeval start
 
clock_t zeroClock
 

Detailed Description

Timer class.

Definition at line 37 of file Android/OgreTimerImp.h.

Constructor & Destructor Documentation

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

Timer constructor.

MUST be called on same thread that calls getMilliseconds()

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

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.

unsigned long Ogre::Timer::getMillisecondsCPU ( )

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

DWORD Ogre::Timer::GetTickCount ( )
inlineprivate

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

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

Definition at line 96 of file OgreMemoryAllocatedObject.h.

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

Definition at line 102 of file OgreMemoryAllocatedObject.h.

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

Definition at line 108 of file OgreMemoryAllocatedObject.h.

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

Definition at line 113 of file OgreMemoryAllocatedObject.h.

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

Definition at line 119 of file OgreMemoryAllocatedObject.h.

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

Definition at line 68 of file OgreMemoryAllocatedObject.h.

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

Definition at line 73 of file OgreMemoryAllocatedObject.h.

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

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

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

Definition at line 86 of file OgreMemoryAllocatedObject.h.

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

Definition at line 91 of file OgreMemoryAllocatedObject.h.

void Ogre::Timer::reset ( )

Resets timer.

void Ogre::Timer::reset ( )

Resets timer.

void Ogre::Timer::reset ( )

Resets timer.

void Ogre::Timer::reset ( )

Resets timer.

void Ogre::Timer::reset ( )

Resets timer.

void Ogre::Timer::reset ( )

Resets timer.

void Ogre::Timer::reset ( )

Resets timer.

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.

Definition at line 60 of file Android/OgreTimerImp.h.

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.

Definition at line 60 of file OSX/OgreTimerImp.h.

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.

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

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.

Definition at line 60 of file FlashCC/OgreTimerImp.h.

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.

Definition at line 60 of file iOS/OgreTimerImp.h.

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.

Definition at line 64 of file NaCl/OgreTimerImp.h.

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.

Member Data Documentation

LARGE_INTEGER Ogre::Timer::mFrequency
private

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

LONGLONG Ogre::Timer::mLastTime
private

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

DWORD Ogre::Timer::mStartTick
private

Definition at line 53 of file WIN32/OgreTimerImp.h.

LARGE_INTEGER Ogre::Timer::mStartTime
private

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

DWORD_PTR Ogre::Timer::mTimerMask
private

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

clock_t Ogre::Timer::mZeroClock
private

Definition at line 51 of file WIN32/OgreTimerImp.h.

struct timeval Ogre::Timer::start
private

Definition at line 40 of file Android/OgreTimerImp.h.

clock_t Ogre::Timer::zeroClock
private

Definition at line 41 of file Android/OgreTimerImp.h.


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