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 bothqb_util_stopwatch_start(3)andqb_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:
qb_util_nano_current_get(3)qb_util_stopwatch_stop(3)qb_util_stopwatch_split(3)qb_util_stopwatch_split_ctl(3)qb_thread_unlock(3)qb_strerror_r(3)qb_util_stopwatch_time_split_get(3)qb_util_set_log_function(3)qb_util_timespec_from_epoch_get(3)qb_thread_lock_destroy(3)qb_thread_trylock(3)qb_util_nano_monotonic_hz(3)qb_util_nano_from_epoch_get(3)qb_util_stopwatch_create(3)qb_util_stopwatch_split_last(3)qb_thread_lock(3)qb_util_stopwatch_free(3)qb_thread_lock_create(3)qb_timespec_add_ms(3)qb_util_stopwatch_start(3)qb_util_stopwatch_us_elapsed_get(3)
go read them. all of them. i'll wait. π
π COPYRIGHT π
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
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- ubuntu resolute: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- ubuntu stonking: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms