Interface for getting and manipulating the virtual time. More...
#include <ITimer.h>
virtual u32 irr::ITimer::getRealTime | ( | ) | const [pure virtual] |
Returns current real time in milliseconds of the system.
This value does not start with 0 when the application starts. For example in one implementation the value returned could be the amount of milliseconds which have elapsed since the system was started.
virtual RealTimeDate irr::ITimer::getRealTimeAndDate | ( | ) | const [pure virtual] |
virtual f32 irr::ITimer::getSpeed | ( | ) | const [pure virtual] |
Returns current speed of the timer.
The speed is the factor with which the time is running faster or slower then the real system time.
virtual u32 irr::ITimer::getTime | ( | ) | const [pure virtual] |
Returns current virtual time in milliseconds.
This value starts with 0 and can be manipulated using setTime(), stopTimer(), startTimer(), etc. This value depends on the set speed of the timer if the timer is stopped, etc. If you need the system time, use getRealTime()
virtual bool irr::ITimer::isStopped | ( | ) | const [pure virtual] |
Returns if the virtual timer is currently stopped.
virtual void irr::ITimer::setSpeed | ( | f32 | speed = 1.0f | ) | [pure virtual] |
Sets the speed of the timer.
The speed is the factor with which the time is running faster or slower then the real system time.
virtual void irr::ITimer::setTime | ( | u32 | time | ) | [pure virtual] |
sets current virtual time
virtual void irr::ITimer::start | ( | ) | [pure virtual] |
virtual void irr::ITimer::stop | ( | ) | [pure virtual] |
virtual void irr::ITimer::tick | ( | ) | [pure virtual] |
Advances the virtual time.
Makes the virtual timer update the time value based on the real time. This is called automatically when calling IrrlichtDevice::run(), but you can call it manually if you don't use this method.