1*61111Sbostic.\" Copyright (c) 1990, 1991, 1993 2*61111Sbostic.\" The Regents of the University of California. All rights reserved. 337123Sbostic.\" 450288Sbostic.\" This code is derived from software contributed to Berkeley by 550288Sbostic.\" the American National Standards Committee X3, on Information 650288Sbostic.\" Processing Systems. 750288Sbostic.\" 843571Strent.\" %sccs.include.redist.man% 937123Sbostic.\" 10*61111Sbostic.\" @(#)clock.3 8.1 (Berkeley) 06/04/93 1137123Sbostic.\" 1248352Scael.Dd 1348352Scael.Dt CLOCK 3 1448352Scael.Os 1548352Scael.Sh NAME 1648352Scael.Nm clock 1748352Scael.Nd determine processor time used 1848352Scael.Sh SYNOPSIS 1948352Scael.Fd #include <sys/types.h> 2048352Scael.Ft clock_t 2148352Scael.Fn clock void 2248352Scael.Sh DESCRIPTION 2348352ScaelThe 2448352Scael.Fn clock 2548352Scaelfunction 2648352Scaeldetermines the amount of processor time used since the invocation of the 2748352Scaelcalling process, measured in 2848352Scael.Dv CLK_TCK Ns s. 2948352Scael.Sh RETURN VALUES 3048352ScaelThe 3148352Scael.Fn clock 3248352Scaelfunction returns the amount of time used unless an error occurs, in which 3348352Scaelcase the return value is \-1. 3448352Scael.Sh SEE ALSO 3548352Scael.Xr getrusage 2 3648352Scael.Sh STANDARDS 3748352ScaelThe 3848352Scael.Fn clock 3948352Scaelfunction conforms to 4048352Scael.St -ansiC . 41