scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

clock.3 (575B)


      1 .TH CLOCK 3
      2 .SH NAME
      3 clock - query processor time used by the program
      4 .SH SYNOPSIS
      5 #include <time.h>
      6 
      7 clock_t clock(void)
      8 .SH DESCRIPTION
      9 The
     10 .BR clock ()
     11 function returns an approximation of the processor time
     12 consumed by the running program.
     13 .SH RETURN VALUE
     14 The accumulated processor time is returned as a
     15 .IR clock_t .
     16 Dividing the result by
     17 .B CLOCKS_PER_SEC
     18 gives the time in seconds.
     19 If the processor time is unavailable or cannot be represented,
     20 .B (clock_t)-1
     21 is returned.
     22 .SH STANDARDS
     23 ISO/IEC 9899:1999 Section 7.23.2.1 Paragraph 1,2,3
     24 .SH SEE ALSO
     25 .BR time.h (3)