From: James Fidell (jfid@mfltd.co.uk)
Date: 07/23/93


From: jfid@mfltd.co.uk (James Fidell)
Subject: Re: delay less than 1 second?
Date: Fri, 23 Jul 1993 13:24:39 GMT


In article <1993Jul23.124340.26346@jac.nuo.dec.com>, guineau@star.enet.dec.com () writes:
>
>
> Sorry if this is in some FAQ. It's *probably* a standard Unix
> question, but it strikes me as one of those 'variant dependant'
> issues..
>
> I need to generate a millisecond (10's to 100's of) delay. sleep() takes
> seconds. Is there a system call in the Linux kernel which will give me a
> variable delay in milliseconds?

It doesn't exist on SYSV, but Linux appears to contain a fair bit of BSD-like
functionality, so you could try "usleep" (unfortunately, I don't have a
Linux system handy to check on).

James.

-- 
 "Yield to temptation --             |
  it may not pass your way again"    |     jfid@mfltd.co.uk
                                     |
        - Lazarus Long               |              James Fidell