| AI Engine Intrinsics User Guide (v2026.1)

Loading...
Searching...
No Matches
Functions
Cycle Counter
Intrinsics » Scalar Operations

## Overview

These intrinsics allow to get the number, or part, of cycles elapsed.

## Functions
unsigned long long | get_cycles ()
| Get number of cycles.

## Function Documentation

## ◆ get_cycles()

unsigned long long get_cycles | ( |  | ) |

Get number of cycles.

AIE Tile has a Tile counter which is a free running counter. This intrinsic returns the 64 bit tile counter value. In order to measure the number of cycles taken by a piece of code, this intrinsic should be read first at the start and again at the end of a code section. The difference is the number of cycles consumed by the code section @ AIE Clock frequency.