xref: /csrg-svn/lib/libc/gen/clock.3 (revision 48352)
1*48352Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California.
237123Sbostic.\" All rights reserved.
337123Sbostic.\"
443571Strent.\" %sccs.include.redist.man%
537123Sbostic.\"
6*48352Scael.\"     @(#)clock.3	5.3 (Berkeley) 04/19/91
737123Sbostic.\"
8*48352Scael.Dd
9*48352Scael.Dt CLOCK 3
10*48352Scael.Os
11*48352Scael.Sh NAME
12*48352Scael.Nm clock
13*48352Scael.Nd determine processor time used
14*48352Scael.Sh SYNOPSIS
15*48352Scael.Fd #include <sys/types.h>
16*48352Scael.Ft clock_t
17*48352Scael.Fn clock void
18*48352Scael.Sh DESCRIPTION
19*48352ScaelThe
20*48352Scael.Fn clock
21*48352Scaelfunction
22*48352Scaeldetermines the amount of processor time used since the invocation of the
23*48352Scaelcalling process, measured in
24*48352Scael.Dv CLK_TCK Ns s.
25*48352Scael.Sh RETURN VALUES
26*48352ScaelThe
27*48352Scael.Fn clock
28*48352Scaelfunction returns the amount of time used unless an error occurs, in which
29*48352Scaelcase the return value is \-1.
30*48352Scael.Sh SEE ALSO
31*48352Scael.Xr getrusage 2
32*48352Scael.Sh STANDARDS
33*48352ScaelThe
34*48352Scael.Fn clock
35*48352Scaelfunction conforms to
36*48352Scael.St -ansiC .
37