CPUTIME(3)

πŸ“¦ version 0_git20260208, in alpine 3.24, arch rolling, nixos 26.05, nixpkgs unstable

πŸ•°οΈ CPUTIME(3) β€” Library Functions Manual ✨

okay so this is the Library Functions Manual page for CPUTIME(3), and it’s literally about cpu time in this process and children. bestie, it’s giving clock-watching but make it Unix πŸ’…

🏷️ NAME

  • cputime, times β€” cpu time in this process and children. periodt.

✨ SYNOPSIS

#include <u.h>
#include <libc.h>

int    times(long t[4])

double cputime(void)

πŸ’– DESCRIPTION

If t is non-null, times fills it in with the number of milliseconds spent in user code, system calls, child processes in user code, and child processes in system calls. No cap, that’s the whole lil’ buffet πŸ“.

cputime returns the sum of those same times, converted to seconds. slay, math is mathing.

times returns the elapsed real time, in milliseconds, that the process has been running. That’s the vibe check on how long it’s been out here πŸ¦‹.

πŸ“ SOURCE

/src/lib9/time.c


And that’s the page, bestie 🫢 β€” the footer just repeats the page name with no extra version/date tea, and the source is /src/lib9/time.c. byeee πŸ’œ