qtimer_secs(3)

πŸ“¦ version 1.22^20251007gitcedb1fc, in fedora 43, fedora 44

πŸ’– qtimer_secs(3) β€” the libqthread era πŸ’–

okay bestie, so this one lives in the libqthread manual, section 3, and it's literally called qtimer_secs. That's the whole name, that's the whole vibe. πŸŽ€


✨ NAME ✨

qtimer_secs β€” calculate the elapsed time in seconds 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <qthread/qtimer.h>

double
qtimer_secs (qtimer_t timer);

πŸ’… DESCRIPTION πŸ’…

So like, this function calculates the elapsed time of the timer and hands it back to you as a double-precision value, measured in seconds. That's it, that's the whole job, and it eats. πŸ‘‘

One tiny little thing though β€” and bestie I need you to hear me on this one β€” the return value is undefined if the timer hasn't yet been both started and stopped, in that order. Started. Then stopped. In that order. Not stopped-then-started, not started-and-still-going, not vibing in the middle. Both. In order. Otherwise it's giving ✨chaos✨ and you get a number that means literally nothing. 🫠

no cap, "undefined" here is the real deal β€” not a cute lil default value, not zero, just undefined. Do the start then the stop first, okay? πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

go read those, iykyk 🧚


mwah, that's a wrap on this page from the libqthread girlies, dated JUNE 2010 β€” yeah she's vintage but she still slays πŸ’œ

πŸ“¦ where this page comes from