clock_t(3type)

πŸ’– clock_t(3type) πŸ’–

okay bestie, welcome to the clock_t(3type) page β€” yes that's the manual name, 3type just means "this is a type, not a function," we love a categorized queen πŸ’…

✨ NAME ✨

clock_t β€” system time πŸ•°οΈ

πŸ“š LIBRARY πŸ“š

Standard C library (libc) 🫢

🌸 SYNOPSIS 🌸

#include <time.h>

typedef /* ... */ clock_t;

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this type is what you use for system time β€” measured in clock ticks, or in units of CLOCKS_PER_SEC, which is defined in <time.h> ✨

and per POSIX? it's either an integer type or a real-floating type. that's it, that's the whole vibe check. no cap. πŸ’«

πŸ‘‘ STANDARDS πŸ‘‘

  • C11
  • POSIX.1-2024

she's official, she's certified, she's on the standards board πŸŽ€

🧚 HISTORY 🧚

  • C89
  • POSIX.1-1988

an OG. been here since before most of us could walk, lowkey iconic 🌈

πŸ’œ NOTES πŸ’œ

plot twist bestie β€” it's not just <time.h> that's holding her. these headers also provide this type too:

  • <sys/types.h>
  • <sys/times.h>

so if you're importing from one of those and clock_t just shows up? that's why. iykyk 😌

πŸ”₯ SEE ALSO πŸ”₯


and that's the page fr fr!! this little cutie came out of Linux man-pages 6.20, dated 2026-02-08 β€” go forth and measure some ticks, you absolute main character πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from
  • arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • πŸ“œ the page's license: Linux-man-pages-copyleft
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms