Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!mcnc!rti!mozart!sherman From: sherman@unx.sas.com (Chris Sherman) Newsgroups: comp.sys.hp Subject: Re: usleep [Re: BSD and HPUX, The Questions Continue...] Message-ID: Date: 21 May 91 01:51:31 GMT References: <1991May2.202710.5152@odin.diku.dk> <67870026@hpcupt1.cup.hp.com> <28356926.3abe@petunia.CalPoly.EDU> <1991May20.122602.6838@minyos.xx.rmit.oz.au> Sender: news@unx.sas.com (Noter of Newsworthy Events) Organization: SAS Institute Inc. Lines: 21 Nntp-Posting-Host: foster.unx.sas.com Here is another usleep I found somewhere for HP/UX: #include #include usleep(d) int d; { struct timeval tv; tv.tv_usec = d; tv.tv_sec = 0; select(1,0,0,0,&tv); } -- Chris Sherman .................... sherman@unx.sas.com | ,-----------------------------------------' / Q: How many IBM CPU's does it take to execute a job? | A: Four; three to hold it down, and one to rip its head off.