lib_sleep_millisecs
status.i4.v = lib_sleep_millisecs(milliseconds.i4.r)
This routine puts the calling process to sleep for a specified number
of milliseconds. Note: the delay is implemented using $SETIMR to set
an event flag and $waitfr to wait for the event flag. The event flag
is allocated by using LIB$GET_EF (and released after the $waitfr
returns). Due to other system activity and the clock granularity, the
length of TIME that the process actually waits may be a bit longer
than what was specified by the call argument.
milliseconds number of milliseconds to delay before continuing
execution
This function returns status values as follows:
completion status values from the $SCHDWK system service
This function requires the following include files:
clib_h, ssdef_h
Related functions:
sleep_millisecs_c, lib_sleep_seconds, pause(_c)
C/C++ usage:
int status;
int milliseconds = 500;
status = lib_sleep_millisecs(&milliseconds);