91 static const Timer* Instance();
102 mOldTicks = mNewTicks;
103 mNewTicks = (mTimer.tick() + mCustomTicks);
232 double GetSecondsPerTick()
const {
return (
double)(mNewTicks - mOldTicks)*GetSecondsPerCPUTick(); }
TimeTicks GetStartTick() const
Get the value of the start tick.
double ElapsedMicroseconds() const
Get elapsed time in microseconds.
double GetSecondsPerCPUTick() const
Get the number of seconds per CPU tick.
TimeTicks Tick()
Get the timers tick value.
double DeltaNano(TimeTicks t1, TimeTicks t2) const
Get the time in nanoseconds between timer ticks t1 and t2.
double ElapsedSeconds() const
Get elapsed time in seconds.
void TR_UTIL_EXPORT AppSleep(unsigned int milliseconds)
Puts the current application thread to sleep for a given number of milliseconds.
double DeltaSec(TimeTicks t1, TimeTicks t2) const
Get the time in seconds between timer ticks t1 and t2.
Timer class is used for measuring elapsed time or time between two points.
double GetSecondsPerTick() const
Get the number of seconds per tick.
A class that represents date time utility.
void SetStartTick()
Set the start tick.
Namespace that holds various utility classes for the engine.
double ElapsedNanoseconds() const
Get elapsed time in nanoseconds.
double ElapsedMilliseconds() const
Get elapsed time in milliseconds.
double DeltaMicro(TimeTicks t1, TimeTicks t2) const
Get the time in microseconds between timer ticks t1 and t2.
double DeltaMil(TimeTicks t1, TimeTicks t2) const
Get the time in milliseconds between timer ticks t1 and t2.
unsigned long long TimeTicks
64bit Integer to hold the Timers time ticks.