Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2000 12:06:27 +0200
From:      Mark Murray <mark@grondar.za>
To:        Terry Lambert <tlambert@primenet.com>
Cc:        eischen@vigrid.com (Daniel Eischen), arch@FreeBSD.ORG
Subject:   Re: "Monotonic" counter/register call - commit candidate. 
Message-ID:  <200011201006.eAKA6RJ18636@gratis.grondar.za>
In-Reply-To: <200011200751.AAA03260@usr06.primenet.com> ; from Terry Lambert <tlambert@primenet.com>  "Mon, 20 Nov 2000 07:51:32 GMT."
References:  <200011200751.AAA03260@usr06.primenet.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > I really hate "jiffie" and would prefer using just get_cyclecount
> > or even better get_counter.  It would also be nice to know what
> > resolution the counter was, perhaps get_counter_res().
> 
> Isn't that obvious from the name of the function?  A jiffy is 1/60th
> of a second, and has been at least since the early 6800 machines came
> out, if not before.

The word "jiffy" has been long dropped.

The resolution of the counter is whatever the tsc register (in Pentium)
is, whatever the pcc is in the Alpha, whatever the itc reg is on IA64.
(..and so on). Architectures that do not have such a register will use
nanotime(9) reduced to an integral number of nanoseconds.

M
--
Mark Murray
Join the anti-SPAM movement: http://www.cauce.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011201006.eAKA6RJ18636>