class Timer

A timer class suitable for measuring the time delta between two events.

Global Functions

float GetTickCount ()Returns the time since the system was started in milliseconds.

Constructors

Timer ()Constructs a new timer.

Methods

float TickDifference ()Returns the time difference between this call and the last call to this function.

Reference

function float GetTickCount ()

Returns the time since the system was started in milliseconds.

This is 64-bit float value that is safe against the 'overflow' problem that haunted the 32-bit system timer every 49.5 days.


method Timer ()

Constructs a new timer.

The timer immediately starts counting.


method float TickDifference ()

Returns the time difference between this call and the last call to this function.

If this is the first call, returns the time difference between this call and the construction of the timer.