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