man(1) Manual page archive


     TIMES(2)                                                 TIMES(2)

     NAME
          times - get process times

     SYNOPSIS
          #include <sys/types.h>
          #include <sys/times.h>

          int times(buffer)
          struct tms *buffer;

     DESCRIPTION
          Times delivers time-accounting information for the current
          process and for the terminated child processes of the cur-
          rent process.  All times are in clock ticks.

          struct tms
          {
                  time_t tms_utime;       user time for this process
                  time_t tms_stime;       system time for this process
                  time_t tms_cutime;      user time for all child processes
                  time_t tms_cstime;      system time for all child processes
          };

          The children times are the sum of the children's process
          times and their children's times.

     SEE ALSO
          time(1), time(2)

     DIAGNOSTICS
          EFAULT