DOKK / manpages / debian 10 / systemtap-doc / function::cpu_clock_ns.3stap.en
FUNCTION::CPU_CLOCK_(3stap) Timestamp Functions FUNCTION::CPU_CLOCK_(3stap)

function::cpu_clock_ns - Number of nanoseconds on the given cpu's clock


cpu_clock_ns:long(cpu:long)

cpu

Which processor's clock to read

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

tapset::timestamp_monotonic(3stap)

October 2018 SystemTap Tapset Reference