1*bac379f5Sbostic.\" Copyright (c) 1990, 1991, 1993 2*bac379f5Sbostic.\" The Regents of the University of California. All rights reserved. 33683a312Sbostic.\" 4987a1e96Sbostic.\" This code is derived from software contributed to Berkeley by 5987a1e96Sbostic.\" the American National Standards Committee X3, on Information 6987a1e96Sbostic.\" Processing Systems. 7987a1e96Sbostic.\" 85af5d383Strent.\" %sccs.include.redist.man% 93683a312Sbostic.\" 10*bac379f5Sbostic.\" @(#)clock.3 8.1 (Berkeley) 06/04/93 113683a312Sbostic.\" 12140d3953Scael.Dd 13140d3953Scael.Dt CLOCK 3 14140d3953Scael.Os 15140d3953Scael.Sh NAME 16140d3953Scael.Nm clock 17140d3953Scael.Nd determine processor time used 18140d3953Scael.Sh SYNOPSIS 19140d3953Scael.Fd #include <sys/types.h> 20140d3953Scael.Ft clock_t 21140d3953Scael.Fn clock void 22140d3953Scael.Sh DESCRIPTION 23140d3953ScaelThe 24140d3953Scael.Fn clock 25140d3953Scaelfunction 26140d3953Scaeldetermines the amount of processor time used since the invocation of the 27140d3953Scaelcalling process, measured in 28140d3953Scael.Dv CLK_TCK Ns s. 29140d3953Scael.Sh RETURN VALUES 30140d3953ScaelThe 31140d3953Scael.Fn clock 32140d3953Scaelfunction returns the amount of time used unless an error occurs, in which 33140d3953Scaelcase the return value is \-1. 34140d3953Scael.Sh SEE ALSO 35140d3953Scael.Xr getrusage 2 36140d3953Scael.Sh STANDARDS 37140d3953ScaelThe 38140d3953Scael.Fn clock 39140d3953Scaelfunction conforms to 40140d3953Scael.St -ansiC . 41