| 1 | .\" Copyright (c) 1980 Regents of the University of California. |
| 2 | .\" All rights reserved. The Berkeley software License Agreement |
| 3 | .\" specifies the terms and conditions for redistribution. |
| 4 | .\" |
| 5 | .\" @(#)times.3 6.1 (Berkeley) %G% |
| 6 | .\" |
| 7 | .TH TIMES 3C "" |
| 8 | .UC 4 |
| 9 | .SH NAME |
| 10 | times \- get process times |
| 11 | .SH SYNOPSIS |
| 12 | .nf |
| 13 | .B "#include <sys/types.h> |
| 14 | .B "#include <sys/times.h> |
| 15 | .PP |
| 16 | .B times(buffer) |
| 17 | .B struct tms *buffer; |
| 18 | .fi |
| 19 | .SH DESCRIPTION |
| 20 | .ft B |
| 21 | This interface is obsoleted by getrusage(2). |
| 22 | .ft R |
| 23 | .PP |
| 24 | .I Times |
| 25 | returns time-accounting information |
| 26 | for the current process |
| 27 | and for the terminated child processes |
| 28 | of the current process. |
| 29 | All times are in 1/HZ seconds, where HZ is 60. |
| 30 | .PP |
| 31 | This is the structure returned by |
| 32 | .IR times : |
| 33 | .PP |
| 34 | .nf |
| 35 | .so /usr/include/sys/times.h |
| 36 | .PP |
| 37 | .fi |
| 38 | The children times are the sum |
| 39 | of the children's process times and |
| 40 | their children's times. |
| 41 | .SH "SEE ALSO" |
| 42 | time(1), getrusage(2), wait3(2), time(3) |