Commit | Line | Data |
---|---|---|
936cff82 KB |
1 | .\" Copyright (c) 1989 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
91cff1e1 | 4 | .\" %sccs.include.redist.man% |
936cff82 | 5 | .\" |
91cff1e1 | 6 | .\" @(#)clock.3 5.2 (Berkeley) %G% |
936cff82 KB |
7 | .\" |
8 | .TH CLOCK 3 "" | |
9 | .AT 3 | |
10 | .SH NAME | |
11 | clock - determine processor time used | |
12 | .SH SYNOPSIS | |
13 | .nf | |
14 | #include <sys/types.h> | |
15 | ||
16 | clock_t | |
17 | clock() | |
18 | .fi | |
19 | .SH DESCRIPTION | |
20 | .I Clock | |
21 | returns the amount of processor time used since the process | |
22 | invocation, measured in | |
23 | .IR CLK_TCK 's. | |
24 | .PP | |
25 | On error, | |
26 | .I clock | |
27 | returns -1. | |
28 | .SH "SEE ALSO" | |
29 | getrusage(2) |