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 your struct timespec * pointer bestie, it's the one getting the glow-up ✨
  • ms β€” the amount of milliseconds to increment ts. an int32_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:

go read those too, they ate πŸ’…


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