[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: sleep
- From: Aaron Brown <arundelo@...>
- Date: Wed, 20 May 2009 17:57:23 -0400
>> How can I implement a function (or use if already has) to perform a
>> "sleep", to wait some (milli)seconds doing nothing. Thanks.
>
> If you can use LuaSocket, then you could do:
>
> require "socket"
>
> socket.sleep(5) -- sleep for five seconds
If you're on a unix or another system that has a sleep command callable
from a shell, you can do:
os.execute("sleep 5")
--
Aaron
http://arundelo.com/
_________________________________________________________________
Hotmail® has a new way to see what's up with your friends.
http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009