FUNCTION::LOCAL_CLOC(3stap)

πŸ’– FUNCTION::LOCAL_CLOC (3stap) πŸ’–

okay bestie, welcome to the Timestamp Functions corner of the 3stap manual, aka the place where we count time and look cute doing it πŸ•°οΈβœ¨


🌸 NAME 🌸

function::local_clock_us β€” the number of microseconds on the local cpu's clock πŸ¦‹


✨ SYNOPSIS ✨

local_clock_us:long()

πŸŽ€ ARGUMENTS πŸŽ€

None. Not a single one. Zero. Nada. She takes no arguments, she simply is πŸ’…


πŸ‘‘ DESCRIPTION πŸ‘‘

So like, this function hands you back the number of microseconds on the local cpu's clock ⏱️ That's it, that's the whole vibe.

The tea you actually need to know: comparing timestamps on the same cpu? Always monotonic, no cap, she only goes forward, never backwards πŸ™…β€β™€οΈ

But between different cpus? 😭 yeah, there may be some drift β€” within about a jiffy, so don't be dramatic about it. It's giving "close enough, bestie."

⚠️ fr fr: monotonic-ness is a per-cpu promise only. Cross-cpu comparisons are where the little discrepancies live, and they can be as big as roughly a jiffy. iykyk πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


cute sign-off time 🫢

This whole thing came from the SystemTap Tapset Reference, and it's dated September 2026 πŸ“… So yeah, that's the version and the date β€” consider yourself informed, bestie. Stay monotonic on your own cpu and slay πŸŒˆπŸ‘‘πŸ’–

πŸ“¦ where this page comes from