Re: How to get CPU cycles per sec?
Re: How to get CPU cycles per sec?
- Subject: Re: How to get CPU cycles per sec?
- From: Shawn Erickson <email@hidden>
- Date: Sun, 25 Jul 2004 14:46:18 -0700
On Jul 25, 2004, at 1:30 PM, Jay A. Kreibich wrote:
On Sun, Jul 25, 2004 at 10:32:24PM +1000, Paul Ripke scratched on the
wall:
On Sunday, Jul 25, 2004, at 00:08 Australia/Sydney, Lalit Chandivade
wrote:
Hi
As per the following discussion
http://lists.apple.com/archives/darwin-kernel/2004/Mar/31/
gettingsystemperfo
rmance.001.txt
clock_get_uptime gives system up time in CPU cycles.
Is there a way in kernel or IOKit to know the CPU cycles per second?
A little digging through xnu source should show where this is coming
from:
pbg3:ksh$ sysctl hw.cpufrequency
hw.cpufrequency = 300000000
Are there any known problems with this call? On my 800MHz TiBook, it
always returns "hw.cpufrequency: 667000000".
And, yes, it is really an 800MHz TiBook. At least that's what the
box said (and what the bill said!). System Profiler also says
800MHz. But sysctl always says 667MHz.
What is your energy save setting for CPU clock speed cycling?
-Shawn
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.