| Home
| Previous
| Next
| Up

CPU_getProcessorSpeedInHZ

Returns the speed of the processor in Hz.

Declaration

void ZAPI CPU_getProcessorSpeedInHZ(
ibool accurate,
CPU_largeInteger *speed)

Prototype In

cpuinfo.h

Return Value

Accurate processor speed in Hz.

Description

This function returns the accurate speed of the CPU in Hz. Note that if the speed cannot be determined, this function will return 0.

This function is similar to the CPU_getProcessorSpeed function, except that it attempts to accurately measure the CPU speed in Hz. This is used internally in the Zen Timer libraries to provide accurate real world timing information. 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_getProcessorSpeed, CPU_getProcessorType, CPU_haveMMX, CPU_getProcessorName

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com