DOKK / manpages / debian 12 / systemtap-doc / function::local_clock_ns.3stap.en
FUNCTION::LOCAL_CLOC(3stap) Timestamp Functions FUNCTION::LOCAL_CLOC(3stap)

function::local_clock_ns - Number of nanoseconds on the local cpu's clock


local_clock_ns:long()

None

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).

tapset::timestamp_monotonic(3stap)

November 2022 SystemTap Tapset Reference