[comp.unix.wizards] times builtin in Bourne shell

m5@lynx.uucp (Mike McNally) (05/04/89)

What does the "times" command of the Bourne shell actually tell me?  Is
it user time + system time for sh itself, then user time + system time for 
children?  I presume that it's a pretty simple rendering of the information
returned by times().


-- 
Mike McNally                                    Lynx Real-Time Systems
uucp: {voder,athsys}!lynx!m5                    phone: 408 370 2233

            Where equal mind and contest equal, go.

guy@auspex.auspex.com (Guy Harris) (05/06/89)

>What does the "times" command of the Bourne shell actually tell me?  Is
>it user time + system time for sh itself, then user time + system time for 
>children?  I presume that it's a pretty simple rendering of the information
>returned by times().

Well, to quote from the SunOS 4.0 SH(1) (derived from the S5R3 one):

     times
          Print  the  accumulated  user  and  system  times   for
          processes run from the shell.

The first figure it prints is the user time for children of the shell,
the second figure is the system time for children of the shell; both are
given in minutes and seconds.