Path: utzoo!attcan!uunet!ncrlnk!ncrcae!ece-csc!ncsuvx!mcnc!xanth!nic.MR.NET!tank!uwvax!rutgers!att!whuts!picuxa!gpasq From: gpasq@picuxa.UUCP (Greg Pasquariello X1190) Newsgroups: comp.lang.c Subject: Re: Delay for a fraction of a second in C Message-ID: <695@picuxa.UUCP> Date: 4 Nov 88 13:13:07 GMT References: <1145@orion.cf.uci.edu> <2804@ingr.UUCP> Reply-To: gpasq@picuxa.UUCP (Greg Pasquariello X1190) Organization: AT&T/EDS Product Integration Center Lines: 24 In article <2804@ingr.UUCP> crossgl@ingr.UUCP (Gordon Cross) writes: >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. >> let me pause (in the Unix operating system) for a fraction of a second. > >You are not going to be able to do this without coding up some kind of >"delay loop" yourself. >Gordon Cross Although kludgy, you could do a read with timeout on some file descriptor as- sociated with a tty. See the man pages on read(1) and termio(7). ========================================================================== -- ========================================================================= "I crush your head!" Greg Pasquariello AT&T PMTC att!picuxa!gpasq Parsippany, NJ =========================================================================