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

# function::cpu\_clock\_us(3stap)

Number of microseconds on the given cpu's clock

## NAME

function::cpu\_clock\_us - Number of microseconds on the given cpu's clock

## SYNOPSIS

```
    cpu_clock_us:long(cpu:long)
```

## ARGUMENTS

*cpu*

Which processor's clock to read

## DESCRIPTION

This function returns the number of microseconds on the given cpu's clock. This is always monotonic comparing on the same cpu, but may have some drift between cpus (within about a jiffy).

## SEE ALSO0

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