From: Jay.Estabrook@digital.com <Jay.Estabrook@digital.com>
Subject: Re: SX/PYXIS timekeeping problem
Date: Thu, 22 Jan 1998 12:53:52 +0500 [thread overview]
Message-ID: <199801221753.MAA10600@linux03.amt.tay1.dec.com> (raw)
In-Reply-To: <199801221714.MAA24830@rrdjazz.nist.gov>
>>> Przemek Klosowski said:
>
> Sorry if this is naive, but doesn't alpha have a cycle counter? On Pentium, I
> have done things like
> cnt=RDMTR();
> sleep(1);
> cnt = RDMTR() - cnt;
> where RDMTR is an assembler inline reading the pentium cycle counter register.
> For a 166 MHz pentium this returns pretty close to 166,000,000.
Ah! Not naive at all, I'd never thought of that. It should work, I think,
though it will take a bit of care (read the RPCC description in the Alpha
AXP Architecture Reference Manual for details).
Someone want to have a go and send me the working code? :-) :-)
--Jay++
-------------------------------------------------------------------------------
American Non Sequitur Society: we don't make sense, but we do like pizza...
Jay A Estabrook Alpha Migration Tools - LINUX Project
Digital Equipment Corp. (978) 506-4202 or (DTN) 226-4202
151 Taylor Street - TAY1-2 enet: Jay.Estabrook@digital.com
Littleton, MA 01460-1407
-------------------------------------------------------------------------------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next prev parent reply other threads:[~1998-01-22 7:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-22 17:14 SX/PYXIS timekeeping problem Przemek Klosowski
1998-01-22 7:53 ` Jay.Estabrook [this message]
1998-01-22 18:10 ` Richard Henderson
[not found] <Pine.GSO.3.96.980122150229.14430A-100000@utopia.poly.edu>
1998-01-23 0:07 ` Ladislav Zejda
[not found] <Pine.GSO.3.96.980121231848.23843D-100000@utopia.poly.edu>
1998-01-22 6:08 ` Alan Young
[not found] <199801220238.VAA01871@alpha1.estabrook.org>
1998-01-22 4:57 ` Aleksandr Pilosov
[not found] <19980121182444.08211@dot.cygnus.com>
1998-01-22 2:32 ` Aleksandr Pilosov
[not found] <Pine.GSO.3.96.980121212845.7205B-100000@utopia.poly.edu>
1998-01-22 2:30 ` Chris Frost
[not found] <Pine.GSO.3.96.980121190111.22441H-100000@utopia.poly.edu>
1998-01-22 2:24 ` Richard Henderson
1998-01-22 2:38 ` Jay.Estabrook
-- strict thread matches above, loose matches on Subject: below --
1998-01-22 0:15 Aleksandr Pilosov
1998-01-22 0:15 Aleksandr Pilosov
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox