Xref: utzoo comp.unix.questions:31160 comp.unix.wizards:25505 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!hal.com!natha From: natha@hal.com (Nathaniel Ingersol) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: talk session Summary: setitimer Message-ID: <1991May9.161406.21802@hal.com> Date: 9 May 91 16:14:06 GMT References: <1489@cvbnetPrime.COM> Sender: news@hal.com Organization: HaL Computer Systems Lines: 22 In article <1489@cvbnetPrime.COM> mkaminsk@cvbnet.prime.com (mailhost) writes: : :Actually usleep(3) is going away in System V Release 4 (SVr4) :so you can use select(2): : : #include : #include : #include : : struct timeval timeout; : : timeout.tv_sec = 0; : timeout.tv_usec = number_of_microseconds; : : /* call select for it's timeout feature */ : select(1, NULL, NULL, NULL, &timeout); : Am I missing something here, or why can't you just make a usleep out of setitimer? You could even use ITIMER_REAL. N