CLOCK_SETTIME(3POSIX)

πŸ’– CLOCK_SETTIME(3POSIX) πŸ’–

okay bestie, welcome to the POSIX Programmer's Manual page for clock_settime β€” clock and timer functions, and yes it's a real one from the POSIX Programmer's Manual, no cap ✨


🌸 PROLOG 🌸

so like, heads up before we go any further 🫢

This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.

literally read that twice, babe. the Linux version might be different, or it might not even exist on Linux at all. don't come for me, come for your libc πŸ’€

πŸ‘‘ NAME πŸ‘‘

clock_settime β€” clock and timer functions


✨ SYNOPSIS ✨

#include <time.h>

int clock_settime(clockid_t clock_id, const struct timespec *tp);

like, that's the whole vibe check right there πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Refer to clock_getres().

not me telling you to go read another page πŸ’… but fr fr, that's where the actual tea is. this one's just the doorway, clock_getres() is the room. iykyk.

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .

okay so the standard is the referee, meaning if this page and the real standard disagree, the standard wins. periodt. πŸ“œ

and that's the whole page, bestie πŸ₯ΉπŸ’œ huge slay, tiny page. shoutout to IEEE/The Open Group for putting this out in 2017 β€” CLOCK_SETTIME(3POSIX) out, mwah πŸ’…βœ¨