Developer Reference

Contents

mkl_get_cpu_clocks

Returns elapsed CPU clocks.

Syntax

void
mkl_get_cpu_clocks
(
unsigned
MKL_INT64
*clocks
);
Include Files
  • mkl.h
Output Parameters
Name
Type
Description
clocks
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.
Product and Performance Information
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.
Notice revision #20201201

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.