CLOCK(3) BSD Programmer's Manual CLOCK(3) NNAAMMEE cclloocckk - determine processor time used SSYYNNOOPPSSIISS ##iinncclluuddee <<ssyyss//ttyyppeess..hh>> _c_l_o_c_k___t cclloocckk(_v_o_i_d); DDEESSCCRRIIPPTTIIOONN The cclloocckk() function determines the amount of processor time used since the invocation of the calling process, measured in CLK_TCKs. RREETTUURRNN VVAALLUUEESS The cclloocckk() function returns the amount of time used unless an error oc- curs, in which case the return value is -1. SSEEEE AALLSSOO getrusage(2) SSTTAANNDDAARRDDSS The cclloocckk() function conforms to ANSI C X3.159-1989 (``ANSI C ''). 4.4BSD June 4, 1993 1