[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Sleep miliseconds
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 15 Aug 2011 10:35:57 -0300
> 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.