CPU_getProcessorSpeed
Returns the speed of the processor in MHz.
Declaration
ulong ZAPI CPU_getProcessorSpeed(
ibool accurate)
Prototype In
cpuinfo.h
Parameters
accurate |
True of the speed should be measured accurately |
Return Value
Processor speed in MHz.
Description
This function returns the speed of the CPU in MHz. Note that if the speed cannot be determined, this function will return 0.
If the accurate parameter is set to true, this function will spend longer profiling the speed of the CPU, and will not round the CPU speed that is reported. This is important for highly accurate timing using the Pentium RDTSC instruction, but it does take a lot longer for the profiling to produce accurate results.
See Also
CPU_getProcessorSpeedInHz, CPU_getProcessorType, CPU_haveMMX, CPU_getProcessorName
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com