PrimeTime
PrimeTime Set interval for timer and start it ticking long msCount ; interval before alarm, in milliseconds
Trap macro _PrimeTime
On entry A0: address of TMTask record
D0: specified delay time (long)
On exit D0: result code
PrimeTime starts the clock ticking on a timer-alarm triggered task previously prepared by means of a call to InsTime. If the count parameter is a positive value, it is interpreted in milliseconds. If
count is a negative value, it is interpreted in negated microseconds.
(Microsecond delays are allowable only in the revised and extended Time
Managers.) The task record specified by tmTaskPtr must already be inserted
returns immediately, and the specified routine is executed after the specified
delay has elapsed. If you call PrimeTime with a time delay of 0, the procedure runs as soon as interrupts are enabled.
In the revised and extended Time Managers, PrimeTime sets the high-order bit of the qType field to 1. In addition, any value of the count parameter that
exceeds the maximum millisecond delay is reduced to the maximum. If you
pause an unexpired task (with RmvTime) and then reinstall it (with with the count parameter set to 0.
tmTaskPtr is the address of a 12-byte TMTask structure previously used in a msCount specifies how long, in milliseconds, to wait before calling your
wakeup routine.
Notes: PrimeTime may be called more than once for any previously the previously set interval. Thus, you can use this as a "watchdog" timer to
be called before you start some event that is prone to getting locked into a
loop.
can be called from inside your alarm handling routine in order to set a new
interval for that routine.