Jump to content

SpSleep: Difference between revisions

From EDM2
Created page with "Suspends the current thread for a specified time interval. '''Syntax:''' CALL spSleep msec '''Parameter:''' msec – time to suspend in milliseconds Example Code: /* mslee..."
 
No edit summary
Line 11: Line 11:
  PARSE ARG ms rest
  PARSE ARG ms rest
  CALL spSleep ms
  CALL spSleep ms
[[Category:The OS/2 API Project]]

Revision as of 13:58, 31 March 2015

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