Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of 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