The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: none
Declaration: function CPU_Speed(ADelay: DWORD): Single;

This function measures the CPU speed by using the RTDSC instruction. The parameter ADelay specifies the measurement interval in milliseconds. The returned value is the CPU speed in MHz.

Hint: The computer is blocked during the measurement - not even the mouse events are processed.

Example: This function is used in the following example program (see for downloading the code): cpuinfo

Last Update: 2012-Oct-20