sys_times.h(0P)
๐ sys_times.h โ bestie edition ๐
okay so this is a page from the POSIX Programmer's Manual, and you're looking at sys_times.h(0P). The Linux version of this interface might do its own lil thing (so peek at the matching Linux man page for the deets), or it might not even be implemented on Linux at all. just a heads up, no cap. ๐ซถ
โจ NAME โจ
sys/times.h โ the header that holds the file access and modification times structure. it's giving clock energy fr. ๐ฐ๏ธ
๐ธ SYNOPSIS ๐ธ
#include <sys/times.h>
๐ DESCRIPTION ๐
so the <sys/times.h> header is gonna define the tms structure, which is the whole point of times() returning it, and it shall include at least these members:
clock_t tms_utime User CPU time.
clock_t tms_stime System CPU time.
clock_t tms_cutime User CPU time of terminated child processes.
clock_t tms_cstime System CPU time of terminated child processes.
let's break it down bestie, because these names lowkey look like alphabet soup:
tms_utimeโ the user CPU time. that's you, main character, doing your thing. ๐tms_stimeโ the system CPU time. the kernel doing its lil tasks for you. โจtms_cutimeโ user CPU time of terminated child processes. the kids already went home but their time still counts. ๐ญtms_cstimeโ system CPU time of terminated child processes. same vibe, system flavored. ๐
also, the <sys/times.h> header shall define the clock_t type exactly as it's described over in <sys/types.h>. slay, type definitions staying consistent.
the following shall be declared as a function and may also be defined as a macro. a function prototype shall be provided:
clock_t times(struct tms *);
๐ note bestie: "may also be defined as a macro" is doing a lot of heavy lifting here โ so don't assume it's always a plain function call, iykyk.
and then, the following sections are informative. (meaning: they're here for the vibes and context, not the hard requirements. periodt.)
๐ APPLICATION USAGE ๐
None. literally nothing. the void. ๐ญ๐ณ๏ธ
๐ง RATIONALE ๐ง
None. also nothing. iconic of them honestly. ๐
๐ฆ FUTURE DIRECTIONS ๐ฆ
None. crystal ball says: no changes coming. ๐ฎ
โญ SEE ALSO โญ
<sys_types.h>- The System Interfaces volume of POSIX.1โ2017,
times()
๐ COPYRIGHT ๐
okay so the legal girlies need their moment, and honestly they earned it:
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 .
and that's a wrap bestie!! ๐โจ this page is brought to you by IEEE/The Open Group, 2017, and the manual page is sys_times.h(0P). go off and time some processes, you got this ๐ซถ๐
๐ฆ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 ยท custom
- alpine 3.23: man-pages-posix 2017a-r0 ยท custom
- alpine 3.24: man-pages-posix 2017a-r0 ยท custom
- arch rolling: man-pages 6.19-1
- 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-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 ยท SUSE-IEEE
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms