TIMES(1P)
π« TIMES(1P) β the times page from the POSIX Programmer's Manual π«
okay bestie, welcome to TIMES(1P), straight out of the POSIX Programmer's Manual (IEEE/The Open Group, 2017 edition). yes we're doing a whole manual page, and yes it's gonna be cute. let's go π¦
πΈ PROLOG πΈ
so like, heads up before we even start:
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
fr fr, always check your local Linux page too, she might be doing her own thing π
β¨ NAME β¨
times β write process times. that's it. that's the whole vibe. β±οΈ
π SYNOPSIS π
times
no flags, no args, no drama. just say the word and she delivers π«Ά
π DESCRIPTION π
okay so the times utility shall write the accumulated user and system times for the shell and for all of its child processes. and she does it in the following POSIX locale format:
"%dm%fs %dm%fs\n%dm%fs %dm%fs\n", <shell user minutes>,
<shell user seconds>, <shell system minutes>,
<shell system seconds>, <children user minutes>,
<children user seconds>, <children system minutes>,
<children system seconds>
look at that format string, she's giving printf but make it timesheets π
The four pairs of times shall correspond to the members of the <sys/times.h> tms structure (defined in the Base Definitions volume of POSIX.1β2017, Chapter 13, Headers) as returned by times(): tms_utime, tms_stime, tms_cutime, and tms_cstime, respectively. π§ so like, four pairs, four struct members, one-to-one, no cap.
π OPTIONS π
None. literally zero. she needs no options, she's self-sufficient, main character energy π
πΈ OPERANDS πΈ
None. nothing to pass, nothing to pass on. iconic.
π STDIN π
Not used. she's not reading your keyboard bestie, she's reading the clock β°
π¦ INPUT FILES π¦
None.
β ENVIRONMENT VARIABLES β
None. no env vars influencing her, she's unbothered, moisturized, in her lane π
π ASYNCHRONOUS EVENTS π
Default.
π STDOUT π
See the DESCRIPTION. yeah that format string up there? that's where it goes.
π STDERR π
The standard error shall be used only for diagnostic messages. only for the "something went wrong" moments, periodt.
πΈ OUTPUT FILES πΈ
None.
π§ EXTENDED DESCRIPTION π§
None.
π₯ EXIT STATUS π₯
0β Successful completion. slay, she did it β¨>0β An error occurred. π
π CONSEQUENCES OF ERRORS π
Default.
The following sections are informative.
π APPLICATION USAGE π
None.
π EXAMPLES π
bestie look, actual output:
$ times
0m0.43s 0m1.11s
8m44.18s 1m43.23s
so the first line is the shell's own user + system time, and the second line is all the children's user + system time. cute right π₯°
π RATIONALE π
The times special built-in from the Single UNIX Specification is now required for all conforming shells. like, mandatory. not optional. she ate and now everyone has to have her π«Ά
π¦ FUTURE DIRECTIONS π¦
None. she's perfect as she is π
β SEE ALSO β
- Section 2.14, Special Built-In Utilities
- The Base Definitions volume of POSIX.1β2017,
<sys_times.h>
go read those if you want the deep lore, iykyk π
π COPYRIGHT π
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 the whole page bestie π this one came from IEEE/The Open Group, 2017, and it's the TIMES(1P) page of the POSIX Programmer's Manual. go time something. mwah π β¨
π¦ 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