[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gettimeofday() and clock
On Wed, Sep 04, 2002 at 02:43:44PM -0500, Steve Baker wrote:
> Steve Baker wrote:
> >Chris Purnell wrote:
> >
> >>On Mon, Sep 02, 2002 at 04:10:34PM -0500, Steve Baker wrote:
> >>
> >>>In what possible way could I change it to only give up one slice?
> >>
> >>
> >>Use select() instead of usleep().
>
> Wow! It works! Replacing the standard usleep with this
> function gets the minimum sleep time down to 10ms. So *WHY*
> isn't the real usleep written like this??
usleep() also isn't POSIX. select() is...