Clock (computing): Difference between revisions

Content deleted Content added
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1:
#REDIRECT [[Clock signal]]
 
'''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.