Jump to content

Clock (computing)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by The Elves Of Dunsimore (talk | contribs) at 04:28, 16 September 2011 (Reverted to revision 450753580 by The Elves Of Dunsimore: whoops wrong button. (TW)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Clock is a library function which returns the number of clock pulses when the program starts.
 The expression CLOCKS_PER_SEC states the relation between a clock pulse and a second.
The syntax of this function is:
clock_t clock (void);
Return value of this function:

This function returns the number of clock pulses elapsed when the program starts, else on failure, 
it returns -1.