home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
OL.LZH
/
PROCS.LZH
/
IPAUSE.ICN
< prev
next >
Wrap
Text File
|
1991-07-13
|
799b
|
32 lines
############################################################################
#
# Name: ipause.icn
#
# Title: pause within an Icon program
#
# Author: Richard L. Goerwitz
#
# Date: June 3, 1991
#
# Version: 1.2
#
############################################################################
#
# Ipause(i) - pause i milliseconds (accuracy depends on the resolution
# of the system clock). Would be nice if Icon had a nap() function, so
# that we didn't just have to loop. Of course, for operating systems
# that don't support all this multitasking nonsense, ipause() will do
# just fine.
#
############################################################################
procedure ipause(i)
local T
T := &time
until &time >= (T + i)
return
end