Path: utzoo!dciem!dretor!gee From: gee@dretor.dciem.dnd.ca (Tom Gee see wdf) Newsgroups: comp.lang.c Subject: Re: Delay for a fraction of a second in C Message-ID: <1169@dretor.dciem.dnd.ca> Date: 4 Nov 88 13:29:55 GMT Article-I.D.: dretor.1169 References: <1145@orion.cf.uci.edu> <28247@utzoo.uucp> Reply-To: gee@dretor (Tom Gee) Organization: D.C.I.E.M., Toronto, Canada Lines: 22 >In <28247@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) write: >>In <1145@orion.cf.uci.edu> echarne@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@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