Delay for a fraction of a second in C

Tom Gee see wdf gee at dretor.dciem.dnd.ca
Fri Nov 4 23:29:55 AEST 1988


>In <28247 at utzoo.uucp> henry at utzoo.uucp (Henry Spencer) write:
>>In <1145 at orion.cf.uci.edu> echarne at orion.cf.uci.edu (Eli B. Charne) writes:
>>The Unix sleep command will only go in increments of one second.  I was
>>wondering if someone new of a nice little routine I could use, or has
>>written one that will let me pause (in the Unix operating system) for
>>a fraction of a second.

>You are basically out of luck.  There is no standard, portable way of
>doing this.  Some Unix systems provide a primitive, sometimes named
>"nap", for doing it; some don't.  Even those that do provide it tend to
>disagree on what units it works in.

About two weeks ago, a version of nap() for System V.3 was posted to the net
( I think it was comp.sources.unix ).  It is a device driver and interface
written by zeff at b-tech.  If anyone wants a copy, send me a message and I'll
mail it to you.
_________
"If you know what a bubble sort is, |  Thomas Gee
 wipe it from your mind"            |  Aerospace Group
        -- Numerical Methods in C.  |  DCIEM
                                    |  Department of National Defence
               {watmath,utzoo}!dciem!zorac!dretor!gee



More information about the Comp.lang.c mailing list