Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 6 - Power Manager / Power Manager Reference
Power Manager Dispatch Routines / Controlling the Processor


CurrentProcessorSpeed

You can use the CurrentProcessorSpeed function to find out the current clock speed of the microprocessor.

short CurrentProcessorSpeed();
DESCRIPTION
The CurrentProcessorSpeed function returns the current clock speed of the computer's microprocessor, in MHz. The value returned will be different from the maximum processor speed if the computer has been configured to run with a reduced processor speed to conserve power.

ASSEMBLY-LANGUAGE INFORMATION
The trap is _PowerMgrDispatch ($A09E). The selector value for CurrentProcessorSpeed is 17 ($11) in the low word of register D0. The processor speed value is returned in the low word of register D0.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996