Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (D-E)
Guardian Procedure Calls Reference Manual—522629-013
4-53
DELAY Procedure
(Superseded by PROCESS_DELAY_ Procedure (H-
•
Measuring time by the processor clock
The DELAY procedure measures time according to the internal clock of the
processor in which the calling process is executing. Typically, processor time (that
is, time as measured by a particular processor) is slightly different from system
time; it also varies slightly from processor to processor, because all the processor
clocks typically run at slightly different speeds. System time is determined by
taking the average of all the processor times in the system.
When measuring short intervals of time, the difference between processor time
and system time is negligible. However, when measuring long intervals of time
(such as several hours or more), the difference can be noticeable. Refer to
“Considerations” for the SIGNALTIMEOUT procedure for a discussion about
measuring long time intervals.
Example
CALL DELAY ( 1000D ); ! suspend for 10 seconds.