QB_UTIL_S...LAPSED_GET(3)

πŸ’– qb_util_stopwatch_sec_elapsed_get(3) πŸ’–

okay so bestie, welcome to the libqb Programmer's Manual β€” yes, that libqb, the one your daemons are lowkey built on 🫢 β€” and today's main character is qb_util_stopwatch_sec_elapsed_get, the little function that tells you how long your stopwatch has been running, in seconds, as a float. iconic behavior honestly.


✨ NAME ✨

qb_util_stopwatch_sec_elapsed_get β€” Get the elapsed time in seconds.

like. it does exactly what it says on the tin. no cap. πŸ’…


✨ SYNOPSIS ✨

#include <qb/qbutil.h>

float qb_util_stopwatch_sec_elapsed_get(
    qb_util_stopwatch_t   *sw
);

she takes one pointer, sw, and hands you back a float. that's the whole vibe. 🌸


✨ DESCRIPTION ✨

so here's the tea, and it's a short one: for this to give you anything real, the stopwatch must have been started and stopped. it must have been started and stopped. πŸŽ€

that's it. that's the whole description. the original page really said "figure it out, bestie" and honestly? respect. 😭

⚠️ heads up: the elapsed time is only meaningful when the stopwatch has been through both qb_util_stopwatch_start(3) and qb_util_stopwatch_stop(3). started. and stopped. both. we said it twice on purpose. 🫢

🌈 SEE ALSO 🌈

the group chat, the whole group chat, and nothing but the group chat:

go read them. all of them. i'll wait. πŸ’œ


Copyright (C) 2010-2020 Red Hat, Inc.


and that's the page, bestie!! πŸ¦‹βœ¨ this was the libqb Programmer's Manual, dated 2025-09-16, and you just read QB_UTIL_S...LAPSED_GET(3) β€” mwah, slay, go stop a stopwatch and time something. periodt. πŸ’…πŸŽ€

πŸ“¦ where this page comes from