QB_UTIL_ST...SPLIT_LAST(3)
π qb_util_stopwatch_split_last β libqb Programmer's Manual, section 3 π
okay bestie, so this is a page from the libqb Programmer's Manual (section 3, the library-function girlies) and we're talking about one very specific little function. let's get into it β¨
β¨ NAME β¨
qb_util_stopwatch_split_last β she tells you the last split index that qb_util_stopwatch_time_split_get() is gonna be allowed to use. that's it. that's the whole job. π
πΈ SYNOPSIS πΈ
#include <qb/qbutil.h>
uint32_t qb_util_stopwatch_split_last(
qb_util_stopwatch_t *sw /* the stopwatch */
);
π¦ PARAMS π¦
swβ the stopwatch. like, the actual stopwatch object you're asking about. give her to me π«Ά
π DESCRIPTION π
so um. there is genuinely no description text here. like the original page just... has the heading and then nothing. no cap, it's giving mystery. the vibe is: the name and the return value already said everything, so the manpage author said "periodt" and moved on. π
β RETURN VALUE β
the last entry index π
π NOTE π
this is zero based, bestie. so index 0 is the first one, not 1. do not come for me with your off-by-one shenanigans, i'm warning you π
π SEE ALSO π
the whole friend group, fr fr:
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_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, my love π this came out of the libqb corner of the world on 2025-09-16, section 3, and honestly? iconic. go forth and index responsibly. mwah π β¨
π¦ 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms