FUNCTION::CPU_CLOCK_(3stap)
β¨ FUNCTION::CPU_CLOCK_(3stap) β¨
okay bestie, welcome to the Timestamp Functions corner of the 3stap manual π this one's a lil baby page but it's lowkey iconic, so let's get into it π
πΈ NAME πΈ
function::cpu_clock_ns β the number of nanoseconds on the given cpu's clock π°οΈβ¨
π¦ SYNOPSIS π¦
cpu_clock_ns:long(cpu:long)
π ARGUMENTS π
cpuβ which processor's clock we're reading, bestie. just tell it which one π
π DESCRIPTION π
so this function returns the number of nanoseconds on the clock of the cpu you handed it. that's the whole vibe π«
and here's the tea: it's always monotonic when you're comparing on the same cpu β like, it never goes backwards on you, no cap π«Ά but between different cpus? there may be some drift (within about a jiffy) π so don't go comparing clocks across cpus and acting surprised, iykyk π
π SEE ALSO π
tapset::timestamp_monotonic(3stap)
not me finishing a whole manpage in one sitting π go read the tapset one next, fr fr πΈ
mwah π this was the SystemTap Tapset Reference, version Ver, dated September 2026 β stan a timestamp function, periodt β¨
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms