FUNCTION::NSECS_TO_S(3stap)
π NAME π
okay bestie, welcome to the 3stap manual, specifically the Task Time Tapset corner of it πΈ and today's main character is:
function::nsecs_to_string β she takes a number of nanoseconds and hands you back a human readable string. no cap, that's the whole job. π
β¨ SYNOPSIS β¨
nsecs_to_string:string(nsecs:long)
like, that's the entire signature. string return type, one long going in. clean. iconic. π
π ARGUMENTS π
nsecsβ the number of nanoseconds you want translated. yes, nanoseconds. the tiny ones. π¦
π DESCRIPTION π
okay so she returns a string that represents how many nanoseconds you fed her, but in a format a human can actually vibe with. the string looks like this:
"XmY.ZZZZZZs"
and here's the breakdown, bestie, don't skip it:
X= the number of minutesY= the number of secondsZZZZZZZZZ= the number of nanoseconds
that's it, that's the whole transformation. you give her a big ol' pile of nanoseconds, she gives you back something with an m in it and a lil decimal situation. it's giving β¨*clock energy*β¨ and honestly? we're obsessed. π«Ά
π₯ SEE ALSO π₯
tapset::task_time(3stap)β go read the rest of the tapset bestie, there's lore π
and that's a wrap on this one!! this page lives in the SystemTap Tapset Reference, Ver edition, dated September 2026 β so yeah, she's fresh, she's documented, she ate π β¨ bye bestie, go timestamp something π¦
π¦ 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