[Overview][Constants][Types][Classes][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
A high resolution timer.
Source position: timerd.inc line 34
type IPTCTimer = interface |
||
procedure SetTime(); |
|
Sets the timer time value. |
procedure Start; |
|
Starts the timer. |
procedure Stop; |
|
Stops the timer. |
function Time; |
|
Gets the current time value of the timer in seconds. |
function Delta; |
|
Gets the amount of time that has passed since the last call to delta in seconds. |
function Resolution; |
|
Gets the limiting resolution of the timer in seconds. |
end; |
|
A high resolution timer. |
A high resolution timer.
The timer class represents a high resolution system timer. Timer objects may be created and started then queried for the current time value in seconds. This is useful for animations because motion can be based upon a high resolution real 't' value instead of being linked to the speed of the machine.