FUNCTION::LOCAL_CLOC(3stap)
π NAME π
function::local_clock_ns β the number of nanoseconds on the local cpu's clock, bestie, and yes it's giving very precise β¨
π SYNOPSIS π
local_clock_ns:long()
πΈ ARGUMENTS πΈ
None. Not a single one. She takes no arguments, she just is. Iconic behaviour honestly π
π¦ DESCRIPTION π¦
okay so this function returns the number of nanoseconds on the local cpu's clock. that's it, that's the whole vibe.
but here's the tea you actually need to know: it's always monotonic when you're comparing on the same cpu β meaning it only ever goes forward, never backwards, no time-travel nonsense on her watch π.
however β and this is the important part, don't skip it β there may be some drift between cpus. how much drift? within about a jiffy. so if you're comparing timestamps across different cpus, lowkey expect them to disagree a lil bit. same cpu = slay and reliable. different cpus = it's giving slight chaos, but only by about a jiffy so like, calm down, it's fine π«Ά
π₯ SEE ALSO π₯
and that's the whole page bestie, no cap π
SystemTap Tapset Reference Ver β September 2026 π©· this came from the Timestamp Functions corner of the 3stap manual, mwah, go forth and timestamp responsibly πβ¨
π¦ 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