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

# function::local\_clock\_ns(3stap)

Number of nanoseconds on the local cpu's clock

## NAME

function::local\_clock\_ns - Number of nanoseconds on the local cpu's clock

## SYNOPSIS

```
    local_clock_ns:long()
```

## ARGUMENTS

None

## DESCRIPTION

This function returns the number of nanoseconds on the local 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)
