TIMES(1)                   POSIX Programmer's Manual                  TIMES(1)



PPRROOLLOOGG
       This manual page is part of the POSIX Programmer's Manual.  The OS
       implementation of this interface may differ (consult the corresponding
       OS manual page for details of OS behavior), or the interface may not be
       implemented on OS.

NNAAMMEE
       times -- write process times

SSYYNNOOPPSSIISS
       times

DDEESSCCRRIIPPTTIIOONN
       The _t_i_m_e_s utility shall write the accumulated user and system times for
       the shell and for all of its child processes, in the following POSIX
       locale format:


           "%dm%fs %dm%fs\n%dm%fs %dm%fs\n", <_s_h_e_l_l _u_s_e_r _m_i_n_u_t_e_s>,
               <_s_h_e_l_l _u_s_e_r _s_e_c_o_n_d_s>, <_s_h_e_l_l _s_y_s_t_e_m _m_i_n_u_t_e_s>,
               <_s_h_e_l_l _s_y_s_t_e_m _s_e_c_o_n_d_s>, <_c_h_i_l_d_r_e_n _u_s_e_r _m_i_n_u_t_e_s>,
               <_c_h_i_l_d_r_e_n _u_s_e_r _s_e_c_o_n_d_s>, <_c_h_i_l_d_r_e_n _s_y_s_t_e_m _m_i_n_u_t_e_s>,
               <_c_h_i_l_d_r_e_n _s_y_s_t_e_m _s_e_c_o_n_d_s>

       The four pairs of times shall correspond to the members of the
       _<_s_y_s_/_t_i_m_e_s_._h_> ttmmss structure (defined in the Base Definitions volume of
       POSIX.1-2017, _C_h_a_p_t_e_r _1_3, _H_e_a_d_e_r_s) as returned by _t_i_m_e_s(): _t_m_s___u_t_i_m_e,
       _t_m_s___s_t_i_m_e, _t_m_s___c_u_t_i_m_e, and _t_m_s___c_s_t_i_m_e, respectively.

OOPPTTIIOONNSS
       None.

OOPPEERRAANNDDSS
       None.

SSTTDDIINN
       Not used.

IINNPPUUTT FFIILLEESS
       None.

EENNVVIIRROONNMMEENNTT VVAARRIIAABBLLEESS
       None.

AASSYYNNCCHHRROONNOOUUSS EEVVEENNTTSS
       Default.

SSTTDDOOUUTT
       See the DESCRIPTION.

SSTTDDEERRRR
       The standard error shall be used only for diagnostic messages.

OOUUTTPPUUTT FFIILLEESS
       None.

EEXXTTEENNDDEEDD DDEESSCCRRIIPPTTIIOONN
       None.

EEXXIITT SSTTAATTUUSS
        0    Successful completion.

       >0    An error occurred.

CCOONNSSEEQQUUEENNCCEESS OOFF EERRRROORRSS
       Default.

       _T_h_e _f_o_l_l_o_w_i_n_g _s_e_c_t_i_o_n_s _a_r_e _i_n_f_o_r_m_a_t_i_v_e_.

AAPPPPLLIICCAATTIIOONN UUSSAAGGEE
       None.

EEXXAAMMPPLLEESS
       $$ times
       00mm00..4433ss 00mm11..1111ss
       88mm4444..1188ss 11mm4433..2233ss

RRAATTIIOONNAALLEE
       The _t_i_m_e_s special built-in from the Single UNIX Specification is now
       required for all conforming shells.

FFUUTTUURREE DDIIRREECCTTIIOONNSS
       None.

SSEEEE AALLSSOO
       _S_e_c_t_i_o_n _2_._1_4, _S_p_e_c_i_a_l _B_u_i_l_t_-_I_n _U_t_i_l_i_t_i_e_s

       The Base Definitions volume of POSIX.1-2017, <<ssyyss__ttiimmeess..hh>>

CCOOPPYYRRIIGGHHTT
       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 .



IEEE/The Open Group                  2017                             TIMES(1)
