FUNCTION::CPU\_CLOCK\_(3stap) Timestamp Functions FUNCTION::CPU\_CLOCK\_(3stap)

# [NAME](#NAME)

function::cpu\_clock\_ms - Number of milliseconds on the given cpu's clock

# [SYNOPSIS](#SYNOPSIS)

```


    cpu_clock_ms:long(cpu:long)
```

# [ARGUMENTS](#ARGUMENTS)

*cpu*

Which processor's clock to read

# [DESCRIPTION](#DESCRIPTION)

This function returns the number of milliseconds 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](#SEE_ALSO0)

[*tapset::timestamp\_monotonic*(3stap)](/man/enterprise-packages/systemtap/tapset::timestamp_monotonic.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::cpu_clock_ms(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
