Important: The information in this document is obsolete and should not be used for new development.
CurrentProcessorSpeed
You can use theCurrentProcessorSpeedfunction to find out the current clock speed of the microprocessor.
short CurrentProcessorSpeed();DESCRIPTION
TheCurrentProcessorSpeedfunction 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 forCurrentProcessorSpeedis 17 ($11) in the low word of register D0. The processor speed value is returned in the low word of register D0.