Go to the documentation of this file.
28 #ifndef __Win32Timer_H__
29 #define __Win32Timer_H__
31 #ifndef WIN32_LEAN_AND_MEAN
32 # define WIN32_LEAN_AND_MEAN
34 #if !defined(NOMINMAX) && defined(_MSC_VER)
35 # define NOMINMAX // required to stop windows.h messing up std::min
58 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
61 #if OGRE_PLATFORM == OGRE_PLATFORM_WINRT
unsigned long getMicroseconds()
Returns microseconds since initialisation or last reset.
GeneralAllocatedObject TimerAlloc
unsigned long getMillisecondsCPU()
Returns milliseconds since initialisation or last reset, only CPU time measured.
void reset()
Resets timer.
Timer()
Timer constructor.
unsigned long getMicrosecondsCPU()
Returns microseconds since initialisation or last reset, only CPU time measured.
bool setOption(const String &strKey, const void *pValue)
Method for setting a specific option of the Timer.
unsigned long getMilliseconds()
Returns milliseconds since initialisation or last reset.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.