lua-users home
lua-l archive

Re: sleep

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


Marco Antonio Abreu wrote:
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
Regards,
Ignacio

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