1.TH CLOCK 3 scc\-VERSION2.SH NAME3clock - query processor time used by the program4.SH SYNOPSIS5#include <time.h>67clock_t clock(void)8.SH DESCRIPTION9The10.BR clock ()11function returns an approximation of the processor time12consumed by the running program.13.SH RETURN VALUE14The accumulated processor time is returned as a15.IR clock_t .16Dividing the result by17.B CLOCKS_PER_SEC18gives the time in seconds.19If the processor time is unavailable or cannot be represented,20.B (clock_t)-121is returned.22.SH STANDARDS23ISO/IEC 9899:1999 Section 7.23.2.1 Paragraph 1,2,324.SH SEE ALSO25.BR time.h (3)