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 πŸ“š


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