Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
AngelOgre_Timer.h
Go to the documentation of this file.
1
2namespace AngelOgre { // Dummy namespace, just to distinguish AngelScript from C++
3
14 class Timer
15 {
16 public:
17
20
22 Timer(const Timer&in other);
23
24 Timer& opAssign(const Timer&in other);
25
27 void reset();
28
31
34
37
40 };
41
44
45} // namespace AngelOgre (dummy, just to distinguish AngelScript from C++)
46
A high-resolution timer, starts counting when created.
uint getMicroseconds()
Wall-clock time since creation or last reset(), in microseconds.
uint getMillisecondsCPU()
CPU (process) time since creation or last reset(), in milliseconds.
uint getMicrosecondsCPU()
CPU (process) time since creation or last reset(), in microseconds.
Timer()
Creates a timer and starts counting.
Timer(const Timer &in other)
Creates a copy with the same start time.
uint getMilliseconds()
Wall-clock time since creation or last reset(), in milliseconds.
void reset()
Restarts counting from zero.
Timer & opAssign(const Timer &in other)
OGRE-AngelScript bindings; Actually named Ogre in the scripts, just changed for docs to separate thin...