QB_UTIL_ST..._SPLIT_GET(3)
π QB_UTIL_ST..._SPLIT_GET(3) π
okay bestie, so this is a page from the libqb Programmer's Manual (section 3, the library-call girlies) and it's all about qb_util_stopwatch_time_split_get β¨
πΈ NAME πΈ
qb_util_stopwatch_time_split_get β bestie this reads the time split (in us, micro seconds, tiny tiny units) from "receint" to "older". that's it, that's the whole job π
π SYNOPSIS π
first you gotta let it in, no gatekeeping:
#include <qb/qbutil.h>
and here's the signature, in all its glory:
uint64_t qb_util_stopwatch_time_split_get(
qb_util_stopwatch_t *sw, /* the stopwatch */
uint32_t receint, /* split */
uint32_t older /* split */
);
π¦ PARAMS π¦
swβ the stopwatch π«Ά like, the actual stopwatch object you're asking aboutreceintβ split π (yes it's spelledreceint, no we do not discuss it, that's just her name and we respect her)olderβ split π
π DESCRIPTION π
so here's the tea: if older == receint then the cumulated split gets returned (counting from the stopwatch start, i.e. the whole thing from the top π).
that's literally the entire description. short and iconic.
β RETURN VALUE β
- the split time in micro seconds π₯ that's your answer, that's your moment
0β if it's not a valid split π so like, don't trust a zero here, it's giving "nope"
π§ SEE ALSO π§
the whole friend group, no cap, all of these are linked and you should go say hi:
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_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)qb_util_stopwatch_sec_elapsed_get(3)
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
and that's the whole page bestie, you ate it, mwah π this was served fresh from LIBQB on 2025-09-16 and yes the header still says QB_UTIL_ST..._SPLIT_GET(3) because the name is long and we love her for it πβ¨π
π¦ 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