4.3BSD-Reno/share/man/cat3/times.0
TIMES(3C) 1989 TIMES(3C)
NNAAMMEE
times - get process times
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
##iinncclluuddee <<ssyyss//ttiimmeess..hh>>
ttiimmeess((bbuuffffeerr))
ssttrruucctt ttmmss **bbuuffffeerr;;
DDEESSCCRRIIPPTTIIOONN
TThhiiss iinntteerrffaaccee iiss oobbssoolleetteedd bbyy ggeettrruussaaggee((22))..
IItt iiss aavvaaiillaabbllee ffrroomm tthhee ccoommppaattiibbiilliittyy lliibbrraarryy,, lliibbccoommppaatt..
_T_i_m_e_s returns time-accounting information for the current
process and for the terminated child processes of the
current process. All times are in 1/HZ seconds, where HZ is
60.
This is the structure returned by _t_i_m_e_s:
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* @(#)times.h 7.1 (Berkeley) 6/4/86
*/
/*
* Structure returned by times()
*/
struct tms {
time_t tms_utime; /* user time */
time_t tms_stime; /* system time */
time_t tms_cutime; /* user time, children */
time_t tms_cstime; /* system time, children */
};
The children times are the sum of the children's process
times and their children's times.
SSEEEE AALLSSOO
time(1), getrusage(2), wait3(2), time(3)
Printed 7/27/90 May 1