|
|
1.1 root 1:
2:
3: times() COHERENT System Call times()
4:
5:
6:
7:
8: Obtain process execution times
9:
10: #include <sys/times.h>
11: #include <sys/const.h>
12: iinntt ttiimmeess(_t_b_p)
13: ssttrruucctt ttbbuuffffeerr *_t_b_p;
14:
15: times reads CPU time information about the current process and
16: its children, and writes it into the structure pointed to by tbp.
17: The structure tbuffer is declared in the header file sys/times.h,
18: as follows:
19:
20:
21: struct tbuffer {
22: long tb_utime; /* process user time */
23: long tb_stime; /* process system time */
24: long tb_cutime;/* childrens' user times */
25: long tb_cstime;/* childrens' system times */
26: };
27:
28:
29: All of the times are measured in basic machine cycles, or HZ,
30: which may be obtained from the header file sys/const.h. Under AT
31: COHERENT, HZ is 100.
32:
33: The childrens' times include the sum of the times of all ter-
34: minated child processes of the current process and of all of
35: their children. The user time represents execution time of user
36: code, whereas system time represents system overhead, such as ex-
37: ecuting system calls, processing signals, and other monitoring
38: functions.
39:
40: ***** Files *****
41:
42: <sys/times.h>
43: <sys/const.h>
44:
45: ***** See Also *****
46:
47: acct(), COHERENT system calls, const.h, ftime(), time()
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.