lua-users home
lua-l archive

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


> There is a library that provides a sleep function in milliseconds? I tried
> using the posix.sleep() function but it only wait seconds instead
> miliseconds.

You want to bind to usleep.
See http://lua-users.org/wiki/SleepFunction . 

Perhaps posix.sleep should accept fractional values and call usleep.