---
name: "function::get_cycles"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::get_cycles"
---

# function::get\_cycles(3stap)

Processor cycle count

## NAME

function::get\_cycles - Processor cycle count

## SYNOPSIS

```
    get_cycles:long()
```

## ARGUMENTS

None

## DESCRIPTION

This function returns the processor cycle counter value if available, else it returns zero. The cycle counter is free running and unsynchronized on each processor. Thus, the order of events cannot determined by comparing the results of the get\_cycles function on different processors.

## SEE ALSO0

[*tapset::timestamp*(3stap)](/tapset::timestamp/3stap.md)
