Xref: utzoo comp.lang.c:24625 comp.unix.questions:18540 Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!think!mintaka!bloom-beacon!eru!luth!sunic!mosh!rolff From: rolff@mosh.UUCP (Anders Rolff) Newsgroups: comp.lang.c,comp.unix.questions Subject: Re^2: sleep()ing less than a second Message-ID: <107@mosh.UUCP> Date: 20 Dec 89 11:53:03 GMT References: <89348.231211BACON@MTUS5.BITNET> <2754@servax0.essex.ac.uk> Lines: 11 peter@sersun1.essex.ac.uk (Allott P) writes: >>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). In SunOS there's a usleep() that sleeps in milliseconds. --Anders