QB_UTIL_S..._SPLIT_CTL(3)
π qb_util_stopwatch_split_ctl β libqb Programmer's Manual π
okay so bestie, welcome to the libqb corner of the manual, section 3, and today's main character is qb_util_stopwatch_split_ctl. yes the name is a mouthful, no we are not changing it, it's iconic. π
β¨ SYNOPSIS β¨
#include <qb/qbutil.h>
int32_t qb_util_stopwatch_split_ctl(
qb_util_stopwatch_t *sw, /* the stopwatch */
uint32_t max_splits, /* maximum number of time splits */
uint32_t options /* (0 or QB_UTIL_SW_OVERWRITE ) */
);
like, she takes a stopwatch, a max_splits, and some options, and she hands you back an int32_t. periodt. π
πΈ PARAMS πΈ
swβ the stopwatch π«Ά literally the stopwatch, that's the whole vibemax_splitsβ maximum number of time splitsoptionsβ (0 or QB_UTIL_SW_OVERWRITE )
π¦ DESCRIPTION π¦
okay so bestieβ¦ this section is empty in the original. like, nothing. no cap. she said "no thoughts, head empty" πβ¨ so I'm not gonna make stuff up β the facts stay the facts.
β RETURN VALUE β
0β on success π slay, it worked-errnoβ on failure π it's giving error, check your errno iykyk
π₯ SEE ALSO π₯
the whole friend group, all invited to the group chat π
qb_util_nano_current_get(3)qb_util_stopwatch_stop(3)qb_util_stopwatch_split(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)qb_util_stopwatch_sec_elapsed_get(3)
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
and that's the whole page bestie, mwah π this was libqb, dated 2025-09-16, page QB_UTIL_S..._SPLIT_CTL(3) β go forth and split those timestamps, you absolute icon π§π
π¦ 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