CPUTIME(3)
π°οΈ 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 π
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms