Mailing List archive

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

[vdr] Re: usleep question.



On Sunday 07 April 2002 14:50, Ulrich Petri wrote:
> Andreas Schultz wrote
>
> > On Sunday 07 April 2002 13:12, Carsten Koch wrote:
> > > ...
> > > depend of the fact that usleep(1) sleeps for
> > > longer than a MICROsecond?
> > > After all, there are a million microseconds in
> > > a second! ;-)
> >
> > While looking into this, i also found something interresting
> > about this, from
> > linux/kernel/times.c:
> >
> > asmlinkage long sys_nanosleep(struct timespec *rqtp, struct
> > timespec *rmtp)
> > {
> >     .....
> >                 /*
> >                  * Short delay requests up to 2 ms will be
> > handled with
> >                  * high precision by a busy wait for all
> > real-time processes.
> >                  *
>
> Are were talking about ms (milliseconds) or µs (microseconds) ?

the if() condition right after the comment says we are talking about µs 
(microseconds).

Andreas



Home | Main Index | Thread Index