1TIMES(1P)                  POSIX Programmer's Manual                 TIMES(1P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       times — write process times
14

SYNOPSIS

16       times
17

DESCRIPTION

19       The times utility shall write the accumulated user and system times for
20       the  shell  and  for all of its child processes, in the following POSIX
21       locale format:
22
23           "%dm%fs %dm%fs\n%dm%fs %dm%fs\n", <shell user minutes>,
24               <shell user seconds>, <shell system minutes>,
25               <shell system seconds>, <children user minutes>,
26               <children user seconds>, <children system minutes>,
27               <children system seconds>
28
29       The four pairs  of  times  shall  correspond  to  the  members  of  the
30       <sys/times.h>  tms structure (defined in the Base Definitions volume of
31       POSIX.1‐2008, Chapter 13, Headers) as returned by  times():  tms_utime,
32       tms_stime, tms_cutime, and tms_cstime, respectively.
33

OPTIONS

35       None.
36

OPERANDS

38       None.
39

STDIN

41       Not used.
42

INPUT FILES

44       None.
45

ENVIRONMENT VARIABLES

47       None.
48

ASYNCHRONOUS EVENTS

50       Default.
51

STDOUT

53       See the DESCRIPTION.
54

STDERR

56       The standard error shall be used only for diagnostic messages.
57

OUTPUT FILES

59       None.
60

EXTENDED DESCRIPTION

62       None.
63

EXIT STATUS

65       Zero.
66

CONSEQUENCES OF ERRORS

68       Default.
69
70       The following sections are informative.
71

APPLICATION USAGE

73       None.
74

EXAMPLES

76       $ times
77       0m0.43s 0m1.11s
78       8m44.18s 1m43.23s
79

RATIONALE

81       The  times  special  built-in from the Single UNIX Specification is now
82       required for all conforming shells.
83

FUTURE DIRECTIONS

85       None.
86

SEE ALSO

88       Section 2.14, Special Built-In Utilities
89
90       The Base Definitions volume of POSIX.1‐2008, <sys_times.h>
91
93       Portions of this text are reprinted and reproduced in  electronic  form
94       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
95       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
96       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
97       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
98       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) In the
99       event of any discrepancy between this version and the original IEEE and
100       The  Open Group Standard, the original IEEE and The Open Group Standard
101       is the referee document. The original Standard can be  obtained  online
102       at http://www.unix.org/online.html .
103
104       Any  typographical  or  formatting  errors that appear in this page are
105       most likely to have been introduced during the conversion of the source
106       files  to  man page format. To report such errors, see https://www.ker
107       nel.org/doc/man-pages/reporting_bugs.html .
108
109
110
111IEEE/The Open Group                  2013                            TIMES(1P)
Impressum