SetTimer

The procedure shown in Figure 1 sets a timer to expire after a specified time interval. Specify the amount of time in seconds. When it times out, you receive the TIMERexpired notification, which contains the data and the timer pointer.
Note: This procedure resets any previous time interval set on this timer.
Figure 1. SetTimer example
   procedure SetTimer
            (
                 T: TimerPointerType;
                 AmountOfTime: integer;
                 Data: integer
            );
            external;
Parameter
Description
T
A timer pointer, as returned by a previous CreateTimer call.
AmountOfTime
The time interval in seconds.
Data
An integer value to be returned with the TIMERexpired notification.