usleep gives you usec accuracy, but the system scheduler can't give you 
resolution less than 10 millisec quanta...
Please correct me if I'm wrong.

Ami


On Friday 31 October 2003 00:34, you wrote:
> On Thu, Oct 30, 2003 at 10:49:38PM +0200, Ami Chayun wrote:
> > Hi,
> > I have a question regarding short sleeps (under 10 millisec).
> > I require to implement sleep with about 1-10 microsec accuracy (that's no
> > problem), but I require to sleep for times ranging between 1 microsec to
> > 1 millisec.
>
> usleep?
>
>     The usleep() function suspends execution of the calling process
>     for (at least) usec microseconds.  The sleep may be lengthened
>     slightly by any system activity or by the time spent processing
>     the call or by the granularity of system timers.


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to