Xref: utzoo comp.lang.c:24606 comp.unix.questions:18519 Path: utzoo!attcan!uunet!mcsun!ukc!servax0!sersun1!peter From: peter@sersun1.essex.ac.uk (Allott P) Newsgroups: comp.lang.c,comp.unix.questions Subject: Re: sleep()ing less than a second Message-ID: <2754@servax0.essex.ac.uk> Date: 19 Dec 89 12:03:28 GMT References: <89348.231211BACON@MTUS5.BITNET> Sender: news@servax0.essex.ac.uk Reply-To: peter@essex.ac.uk (Allott P) Organization: University of Essex, Colchester, UK Lines: 8 In article <89348.231211BACON@MTUS5.BITNET> BACON@MTUS5.BITNET (Jeffery Bacon) writes: >Given sleep(arg); unsigned arg. Nothing new. >But what if you want to sleep for less than one second, say, 0.5? It is possible to "sleep" for less than one second by doing a selcect(.......) with an appropriate value in the timeval (5th param I think) and with no channels to check (2nd through 4th params I think). See the documentation for full details.