date and time created 89/05/17 22:49:21 by bostic
[unix-history] / usr / src / lib / libc / gen / clock.3
CommitLineData
936cff82
KB
1.\" Copyright (c) 1989 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
16.\" @(#)clock.3 5.1 (Berkeley) %G%
17.\"
18.TH CLOCK 3 ""
19.AT 3
20.SH NAME
21clock - determine processor time used
22.SH SYNOPSIS
23.nf
24#include <sys/types.h>
25
26clock_t
27clock()
28.fi
29.SH DESCRIPTION
30.I Clock
31returns the amount of processor time used since the process
32invocation, measured in
33.IR CLK_TCK 's.
34.PP
35On error,
36.I clock
37returns -1.
38.SH "SEE ALSO"
39getrusage(2)