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....



CPU_Speed


Unit:SDL_cpuid
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 http://www.lohninger.com/examples.html for downloading the code): cpuinfo



Last Update: 2023-Feb-06