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 about
  • receint β€” split πŸŽ€ (yes it's spelled receint, 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:


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