Returns the frequency value in GHz based on constant-rate Time Stamp Counter.
Fortran:
freq = mkl_get_clocks_frequency()
C:
freq = mkl_get_clocks_frequency();
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.
Name |
Type |
Description |
---|---|---|
freq |
FORTRAN: DOUBLE PRECISION C: double |
Frequency value in GHz |
The function mkl_get_clocks_frequency returns the CPU frequency value (in GHz) based on constant-rate Time Stamp Counter (TSC). Use of the constant-rate TSC ensures that each clock tick is constant even if the CPU frequency changes. Therefore, the returned frequency is constant.
Obtaining the frequency may take some time when mkl_get_clocks_frequency is called for the first time. The same holds for functions second/dsecnd, which call mkl_get_clocks_frequency.
Copyright © 1994 - 2011, Intel Corporation. All rights reserved.