sleep()ing less than a second

Tom Neff tneff at bfmny0.UU.NET
Wed Dec 20 07:30:53 AEST 1989


In article <1937 at crdos1.crd.ge.COM> davidsen at crdos1.crd.ge.COM (Wm E Davidsen Jr) writes:
>[how to sleep less than a second?]
>Common names are mspeel (in ms), usleep (in us, but clock tick
>resolution), and nap (ms again).
>
>  nap is xenix and 5.3.2 and later ...

However the argument to nap() in Sys V/386 is in HUNDREDTHS of a second,
not in milliseconds.  V/386 CURSES provides a separate napms() function
for millisecond precision.

Go figure.

-- 
"We plan absentee ownership.  I'll stick to       `o'   Tom Neff
 building ships." -- George Steinbrenner, 1973    o"o   tneff at bfmny0.UU.NET



More information about the Comp.lang.c mailing list