programming.nbk: Home | Index | Next Page: CLOCKS_PER_SEC | Previous Page: clock_t
Clock program
Returns the number of clock ticks elapsed since the program was launched.
The macro constant expression CLOCKS_PER_SEC specifies the relation between a clock tick and a second (clock ticks per second).
The initial moment of reference used by clock as the beginning of the program execution may vary between platforms. To calculate the actual processing times of a program, the value returned by clock should be compared to a value returned by an initial call to clock.
(none)
The number of clock ticks elapsed since the program start. On failure, the function returns a value of -1.
clock_t is a type defined in
programming.nbk: Home | Index | Next Page: CLOCKS_PER_SEC | Previous Page: clock_t
Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time