|
NAMEtimes —
process times
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/times.h>
clock_t
DESCRIPTIONThis interface is obsoleted by
getrusage(2)
and
gettimeofday(2).
The It also fills in the structure pointed to by tp with time-accounting information. The tms structure is defined as follows: struct tms { clock_t tms_utime; clock_t tms_stime; clock_t tms_cutime; clock_t tms_cstime; }; The elements of this structure are defined as follows:
All times are in The times of a terminated child process are included in the
tms_cutime and tms_cstime
elements of the parent when one of the
wait(2)
functions returns the process ID of the terminated child to the parent. If
an error occurs, ERRORSThetimes () function may fail and set the global
variable errno for any of the errors specified for the
library routines
getrusage(2)
and
gettimeofday(2).
SEE ALSOtime(1), getrusage(2), gettimeofday(2), wait(2), sysconf(3), clocks(7)STANDARDSThetimes () function conforms to IEEE
Std 1003.1-1988 (“POSIX.1”).
Visit the GSP FreeBSD Man Page Interface. |