From: arnold@zam331.kfa-juelich.de (A.Arnold)
Subject: How to find out clock frequency under DU ?
Date: 1997/03/17 [thread overview]
Message-ID: <5gj3cd$idk@zam201.zam.kfa-juelich.de> (raw)
On an AlphaStation running Digital Unix, is there a way for a C program to find
out the processor's clock speed? I am using the processor's cycle counter to
get a high-resolution, low-overhead timer, and I want to make my code machine-
independent (i.e. the scaling factor should adapt to the processor's clock).
I tried delaying for a known time with usleep() a measuring the difference in
clocks, but that doesn't seem to be very accurate...
--
--------------------------------------------------------------------------------
Alfred Arnold Phone: +49 (2461) 61-2434
Zentralinstitut fuer Angewandte Mathematik Fax : +49 (2461) 61-6656
Forschungszentrum Juelich E-Mail: a.arnold@kfa-juelich.de
D-52425 Juelich, Germany
--------------------------------------------------------------------------------
next reply other threads:[~1997-03-17 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-17 5:00 A.Arnold [this message]
1997-03-24 5:00 ` How to find out clock frequency under DU ? Burkhard Neidecker-Lutz
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