usleep by poll()

Root Boy Jim rbj at uunet.UU.NET
Thu Apr 4 06:30:42 AEST 1991


In article <11691 at dog.ee.lbl.gov> torek at elf.ee.lbl.gov (Chris Torek) writes:
?In article <999 at muffin.cme.nist.gov> libes at cme.nist.gov (Don Libes)
?[posts real code.  Commendable.  Now for a tangent :-) ]

No for a cotangent :-)

?Time values, including delays, should be in nanosecond granularity,
?if not finer.  (Nanoseconds has the advantage of fitting easily in 64
?bits as divided into `struct timevalue { long tv_sec; long tv_nsec; };'.)

By giving up a few bits for resolution, one can extend the range of
time values represented. A standard I have seen DEC use (first in
VMS/RSX RMS code) uses "hundreds of nanoseconds since [sometime in 1858]",
the date of the first photographic exposure by the Smithsonian.
I think this may actually a real ANSI time specification.

?In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427)
?Berkeley, CA		Domain:	torek at ee.lbl.gov
-- 
		[rbj at uunet 1] stty sane
		unknown mode: sane



More information about the Comp.unix.wizards mailing list