Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!snorkelwacker!mit-eddie!uw-beaver!sumax!polari!rwing!nanook From: nanook@rwing.UUCP (Robert Dinse) Newsgroups: comp.unix.internals Subject: Re: Can Unix sleep in terms of mili/micro? Summary: Unix sleep Message-ID: <151@rwing.UUCP> Date: 10 Sep 90 19:38:48 GMT References: <24437@adm.BRL.MIL> Organization: Totally Unorganized Lines: 17 In article <24437@adm.BRL.MIL>, TAYBENGH%NUSDISCS.BITNET@cunyvm.cuny.edu writes: > > Can Unix sleep in terms of mili or mirco second? I am aware that > sleep() can only sleep in terms of second. Please specify the Unix Dialect > when u reply. Thanks. > > - Beng Hang (email: taybengh@nusdiscs) Two provisions I'm familiar with: Under Xenix there is a nap() system call. It takes an argument in milliseconds, but the granularity depends on the system tick rate. To use it the -lx (to link the xenix library) is required. Under Sun OS, usleep(), which takes an argument in microseconds is available. I don't remember having to do anything special to use it but it's been awhile.