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