Path: utzoo!attcan!uunet!husc6!uwvax!tank!nic.MR.NET!shamash!nis!ems!srcsip!colburn From: colburn@src.honeywell.COM (Mark H. Colburn) Newsgroups: comp.lang.c Subject: Re: Delay for a fraction of a second in C Message-ID: <11369@srcsip.UUCP> Date: 4 Nov 88 17:37:10 GMT References: <1145@orion.cf.uci.edu> <2804@ingr.UUCP> Reply-To: colburn@sip8.UUCP (Mark H. Colburn) Organization: Honeywell Systems & Research Center, Camden, MN Lines: 15 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. 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. #> be great! #You are not going to be able to do this without coding up some kind of #"delay loop" yourself. Actually, under System V you can use the VMIN timer on the tty driver, which will give you granularity of about 1/10 of a second. As long as your are going to be doing terminal oriented work, this is fairly easy. This does not work on most BSD systems, although there you have higher granularity sleeps anyways...