clock

Returns the amount of time used by the current program.

clock_t clock (void);

Required Header
<time.h>

Return Value

This function returns the number of clock ticks passed since the program began.

Remarks

The clock function returns the number of clock ticks, but can be converted into seconds by dividing by the constant CLOCKS_PER_SEC.

Time

See Also    difftime, time