#include <OgreTimer.h>
Inheritance diagram for Ogre::Timer:
Public Methods | |
Timer () | |
Creates a timer. | |
virtual void | reset () |
Resets timer. | |
virtual unsigned long | getMilliseconds () |
Returns milliseconds since initialisation or last reset. | |
virtual unsigned long | getMillisecondsCPU () |
Returns milliseconds since initialisation or last reset, only CPU time measured. | |
virtual unsigned long | getMicroseconds () |
Returns microseconds since initialisation or last reset. | |
virtual unsigned long | getMicrosecondsCPU () |
Returns microseconds since initialisation or last reset, only CPU time measured. | |
Protected Attributes | |
clock_t | zeroClock |
Definition at line 36 of file OgreTimer.h.
|
Creates a timer.
Definition at line 30 of file OgreTimer.cpp. |
|
Returns microseconds since initialisation or last reset.
Reimplemented in Ogre::SDLTimer, and Ogre::Win32Timer. Definition at line 52 of file OgreTimer.cpp. References getMicrosecondsCPU(). Referenced by Ogre::Profiler::beginProfile(), and Ogre::Profiler::endProfile(). |
|
Returns microseconds since initialisation or last reset, only CPU time measured.
Definition at line 57 of file OgreTimer.cpp. References zeroClock. Referenced by getMicroseconds(). |
|
Returns milliseconds since initialisation or last reset.
Reimplemented in Ogre::SDLTimer, and Ogre::Win32Timer. Definition at line 41 of file OgreTimer.cpp. References getMillisecondsCPU(). Referenced by Ogre::Root::_fireFrameEnded(), Ogre::Root::_fireFrameStarted(), Ogre::RenderTarget::resetStatistics(), Ogre::RenderTarget::updateStats(), and Ogre::RenderTarget::writeContentsToTimestampedFile(). |
|
Returns milliseconds since initialisation or last reset, only CPU time measured.
Definition at line 46 of file OgreTimer.cpp. References zeroClock. Referenced by getMilliseconds(). |
|
Resets timer.
Reimplemented in Ogre::SDLTimer, and Ogre::Win32Timer. Definition at line 36 of file OgreTimer.cpp. References zeroClock. Referenced by Ogre::Root::initialise(). |
|
Definition at line 39 of file OgreTimer.h. Referenced by getMicrosecondsCPU(), getMillisecondsCPU(), and reset(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:21:13 2004