lua-users home
lua-l archive

RE: sleep

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>> 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

AltStyle によって変換されたページ (->オリジナル) /