Jump to content

SpSleep

From EDM2
Revision as of 04:15, 29 June 2016 by Martini (talk | contribs) (Martini moved page OS2 API:spSleep to OS2 API:SPUTILS:spSleep)

Suspends the current thread for a specified time interval.

Syntax: CALL spSleep msec

Parameter: msec – time to suspend in milliseconds

Example Code:

/* msleep.cmd (spUtils Example Code) */
/* Waits the given number of milliseconds */
CALL RXFUNCADD 'spSleep','spUtils','spSleep'
PARSE ARG ms rest
CALL spSleep ms