mkl_get_cpu_frequency

Returns CPU frequency value in GHz.

Syntax

Fortran:

freq = mkl_get_cpu_frequency()

C:

freq = mkl_get_cpu_frequency();

Include Files

The FORTRAN 77 interface is specified in the mkl_service.fi include file and the C interface is specified in the mkl_service.h include file.

Output Parameters

Name

Type

Description

freq

FORTRAN: DOUBLE PRECISION

C: double

CPU frequency value in GHz

Description

The function mkl_get_cpu_frequency returns the CPU frequency in GHz. This value is used by second /dsecnd functions while converting CPU clocks into seconds.

Obtaining a frequency may take some time when second /dsecnd/mkl_get_cpu_frequency is called for the first time. To avoid it, call mkl_set_cpu_frequency before setting the exact CPU frequency if it is known in advance.

Note iconNote

getcpufrequency is an obsolete name for the mkl_get_cpu_frequency function that is referenced in the library for back compatibility purposes but is deprecated and subject to removal in subsequent releases.

See Also

Submit feedback on this help topic

Copyright © 1994 - 2010, Intel Corporation. All rights reserved.