billg@cs.tamu.edu (William Gunshannon) (10/12/90)
Is there any way to get finer than 1 second timer resolution on the 3B1?? I am told there is a system for this in the newer Revs of SYS V, but is there any way (even sneaking in thru the back door) that I can use on a 3B1?? It doesn't need to be portable. bill gunshannon bill@platypus.uofs.edu
thad@cup.portal.com (Thad P Floryan) (10/22/90)
billg@cs.tamu.edu (William Gunshannon) in <9019@helios.TAMU.EDU> writes:
"Is there any way to get finer than 1 second timer resolution on the
3B1?? [...] "
Not clear for what purpose you need a "timer." I just noticed one reply that
used a "busy-wait" (or "spin busy) loop to delay for a specified time.
If you just need a time-of-day resolution, you can get 1/60 second increments
using the times(2) routine as I posted a month or so ago re: my version of the
gettimeofday(2); actually the resolution is platform dependent ... see ``HZ''
in /usr/include/sys/param.h for the value on YOUR system (it's 60 on the 3B1).
Thad Floryan [ thad@cup.portal.com (OR) ..!sun!portal!cup.portal.com!thad ]