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 π
C11POSIX.1-2024
she's official, she's certified, she's on the standards board π
π§ HISTORY π§
C89POSIX.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
- Copyright 2020, Michael Kerrisk <mtk.manpages@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms