class Timer
A timer class suitable for measuring the time delta between two events.
Global Functions
float GetMilliseconds () | Returns the system timer in milliseconds. |
float GetTickCount () | Returns the system timer in milliseconds. |
Constructors
Timer () | Constructs a new timer. |
Methods
float TimeDelta () | Returns the time difference between this call and the last call to this function in milliseconds. |
Reference
function float GetMilliseconds () |
Returns the system timer in milliseconds. This 64-bit timer has a one millisecond resolution, so it is more accurate than GetTickCount(). |
function float GetTickCount () |
Returns the system timer in milliseconds. This 64-bit timer is safe against the 'overflow' problem that haunted the 32-bit system timer every 49.5 days. The timer's resolution is approximately 20 ms. |
method Timer () |
Constructs a new timer. The timer immediately starts counting. |
method float TimeDelta () |
Returns the time difference between this call and the last call to this function in milliseconds. If this is the first call, returns the time difference between this call and the construction of the timer. |