Sleep: Difference between revisions

447 bytes added ,  10 years ago
Lhogho
No edit summary
(Lhogho)
Line 619:
<br/>{{VI snippet}}<br/>
[[File: Sleep.png]]
=={{header|Lhogho}}==
The Logo version works without modification. Another way to Sleep, in the Windows version of Lhogho, is to use the Win32 function, viz
<lang logo>make "Void "V0
make "Long "U4
make "kernel32_handle libload "kernel32.dll
to Sleep :dwMilliseconds
end
external "Sleep [ Void Sleep Long] :kernel32_handle
 
to millisleep :n
print [Sleeping...]
Sleep :n ; units: 1/1000th of a second
print [Awake.]
end</lang>
 
=={{header|Liberty BASIC}}==
<lang lb>Input "Please input the number of milliseconds you would like to sleep. "; sleeptime
Anonymous user