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 π₯
tapset::timestamp_monotonic(3stap)β go read the family, they're all iconic π
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
- 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