QB_TIMESPEC_ADD_MS(3)
π QB_TIMESPEC_ADD_MS β the libqb programmer's manual, but make it cute π
okay bestie, welcome to the libqb Programmer's Manual β¨ this one is qb_timespec_add_ms(3) and it's genuinely so simple it's giving little-iconic-one-liner energy π
πΈ NAME πΈ
qb_timespec_add_ms β Add milliseconds onto the timespec.
like... that's the whole job. it adds ms to a ts. no notes. π
β¨ SYNOPSIS β¨
#include <qb/qbutil.h>
void qb_timespec_add_ms(
struct timespec *ts, /* the ts to add to */
int32_t ms /* the amount of milliseconds to increment ts */
);
so you pull in qb/qbutil.h and then you call it, and it returns void β meaning it gives you nothing back, it just does the thing to your ts in place. main character behaviour fr fr π
π«Ά PARAMS π«Ά
tsβ the ts to add to. that's yourstruct timespec *pointer bestie, it's the one getting the glow-up β¨msβ the amount of milliseconds to increment ts. anint32_t, so keep it in your lane, it's 32 bits of ms π
π¦ DESCRIPTION π¦
okay so... the original page literally has nothing here. like, nothing nothing. the DESCRIPTION section is empty β not a single word, not one sentence, it's giving mysterious β¨π i'm not gonna make stuff up and pretend it was there, because that would be lying to you and i would never π so: this section is empty in the source. periodt.
π₯ SEE ALSO π₯
the whole friend group showed up, and they're all here:
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_util_stopwatch_start(3)qb_util_stopwatch_us_elapsed_get(3)qb_util_stopwatch_sec_elapsed_get(3)
go read those too, they ate π
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
and that's the whole page babes π this came from LIBQB, dated 2025-09-16, and it lives at QB_TIMESPEC_ADD_MS(3) β tysm for reading, go add some milliseconds to a timespec, you're gonna slay πππΈ
π¦ 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