Xref: utzoo unix-pc.general:6299 comp.sys.att:10632 Path: utzoo!attcan!uunet!fernwood!portal!cup.portal.com!thad From: thad@cup.portal.com (Thad P Floryan) Newsgroups: unix-pc.general,comp.sys.att Subject: Re: Timer resolution on a 3B1 Message-ID: <35146@cup.portal.com> Date: 22 Oct 90 09:51:11 GMT References: <9019@helios.TAMU.EDU> Organization: The Portal System (TM) Lines: 14 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 ]