rewrite to look like times()
[unix-history] / usr / src / lib / libc / gen / times.3
CommitLineData
43062420
KM
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.\"
79e6b3c8 5.\" @(#)times.3 6.2 (Berkeley) %G%
43062420 6.\"
852c0942 7.TH TIMES 3C ""
43062420
KM
8.UC 4
9.SH NAME
10times \- 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
80cc0fcb
KM
20.ft B
21This interface is obsoleted by getrusage(2).
79e6b3c8
KB
22.br
23It is available from the compatibility library, libcompat.
80cc0fcb
KM
24.ft R
25.PP
43062420
KM
26.I Times
27returns time-accounting information
28for the current process
29and for the terminated child processes
30of the current process.
80cc0fcb 31All times are in 1/HZ seconds, where HZ is 60.
43062420
KM
32.PP
33This is the structure returned by
34.IR times :
35.PP
36.nf
37.so /usr/include/sys/times.h
38.PP
39.fi
40The children times are the sum
41of the children's process times and
42their children's times.
43.SH "SEE ALSO"
80cc0fcb 44time(1), getrusage(2), wait3(2), time(3)