Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Delay for a fraction of a second in C
Message-ID: <1988Nov3.183324.28247@utzoo.uucp>
Organization: U of Toronto Zoology
References: <1145@orion.cf.uci.edu>
Date: Thu, 3 Nov 88 18:33:24 GMT

In article <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.  If it could go to 100th of a second, that would
>be great!

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.
-- 
The Earth is our mother.        |    Henry Spencer at U of Toronto Zoology
Our nine months are up.         |uunet!attcan!utzoo!henry henry@zoo.toronto.edu
