[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 17:57:33 -0300
> Perhaps a nicer solution would be to extend luaposix sleep to accept
> fractional values and call first posix sleep() for the integer part, then
> posix usleep() for the fractional part. However, you have to take care of
> how the new sleep function responds to signals.
Why not simply call usleep with t*1e6 ?