BINTIME_ADD(9)
πΈ NAME πΈ
bintime_add β operations on βbintimeβ π
okay so bestie, this is the Kernel Developer's Manual page for BINTIME_ADD(9), and it's literally all about the βbintimeβ operations. no cap. β¨
β¨ SYNOPSIS β¨
#include <sys/time.h>
vid
bintime_add(struct bintime *bt, const struct bintime *bt2);
void
bintime_addx(struct bintime *bt, uint64_t x);
void
bintime_sub(struct bintime *bt, const struct bintime *bt2);
void
bintime2timespec(const struct bintime *bt, struct timespec *ts);
void
timespec2bintime(const struct timespec *ts, struct bintime *bt);
void
bintime2timeval(const struct bintime *bt, struct timeval *tv);
void
timeval2bintime(const struct timeval *tv, struct bintime *bt);
yup, that's the exact squad right there β keep those declarations exactly as written, fr fr. π«Ά
π DESCRIPTION π
these functions are lowkey convenience functions, bestie β they're part of the machine-independent timecounter(9) framework, and all of them operate with the bintime structure. iconic. β¨
bintime_add()β adds the time information stored inbt2tobt. πbintime_sub()β conversely, subtractsbt2frombt. π₯bintime_addx()β stores the fraction of a secondxtobt. βbintime2timespec()β like, the function name literally bespeaks it: converts thebintimestructure tostruct timespec. π¦timespec2bintime()β does the opposite. πbintime2timeval()β operates withstruct timevalinstead. πΈtimeval2bintime()β also operates withstruct timevalinstead. π
and the result is stored to the right-hand side, periodt. π
π¦ SEE ALSO π¦
mwah π that's the whole vibe. this page is from Debian, dated June 8, 2010, and it's literally BINTIME_ADD(9) β bye bestie! π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2010 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms