mkl_get_cpu_clocks

Returns full precision elapsed CPU clocks.

Syntax

FORTRAN:

call mkl_get_cpu_clocks( clocks )

C:

mkl_get_cpu_clocks( &clocks );

Include Files

Output Parameters

Name

Type

Description

clocks

FORTRAN: INTEGER*8

C: unsigned MKL_INT64

Elapsed CPU clocks

Description

The mkl_get_cpu_clocks function returns the elapsed CPU clocks.

This may be useful when timing short intervals with high resolution. The mkl_get_cpu_clocks function is also applied in pairs like second/dsecnd. Note that out-of-order code execution on IA-32 or Intel® 64 architecture processors may disturb the exact elapsed CPU clocks value a little bit, which may be important while measuring extremely short time intervals.

Note iconNote

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

Optimization Notice

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804

See Also

Submit feedback on this help topic