[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 20:45:07 -0300
> > Why not simply call usleep with t*1e6 ?
>
> Because POSIX allows usleep to return EINVAL if the argument is >= 1e6
Ah, I missed "The useconds argument shall be less than one million." in
http://pubs.opengroup.org/onlinepubs/009695399/functions/usleep.html
Sorry for the noise.