Previous: 4.80.1.1. CPU_getCPUIdFeatures function To the Table of Contents Next: 4.80.1.3. CPU_getProcessorType function
4.80.1.1. CPU_getCPUIdFeatures function Table of Contents 4.80.1.3. CPU_getProcessorType function

- 4.80.1.2. -
Table of Contents
4. Standard Units
4.80. ZenTimer - Full-featured ZTimer Library
4.80.1. ZenTimer Unit Procedures and Functions
4.80.1.2. CPU_getProcessorSpeed function


4.80.1.2. CPU_getProcessorSpeed function

Targets: MS-DOS, OS/2, Win32


ZenTimer Unit

Returns the speed of the processor in Mhz.

Declaration:
function CPU_getProcessorSpeed: DWord;
Remarks:
This function returns the speed of the CPU in Mhz. Note that if the speed cannot be determined, this function will return 0.

Example:
{$ifndef __CON__}
  This program must be compiled for MS-DOS,
  OS/2 or Win32 console mode
{$endif}
uses
  ZenTimer;
begin
  Writeln('CPU speed is ', CPU_getProcessorSpeed,' Mhz');
end.



Previous: 4.80.1.1. CPU_getCPUIdFeatures function To the Table of Contents Next: 4.80.1.3. CPU_getProcessorType function
4.80.1.1. CPU_getCPUIdFeatures function Table of Contents 4.80.1.3. CPU_getProcessorType function

- 4.80.1.2. -