clock
clock
Defined in header <time.h> | ||
---|---|---|
clock_t clock(void); |
Returns the approximate processor time used by the process since the beginning of an implementation-defined era related to the program's execution. To convert result value to seconds, divide it by CLOCKS_PER_SEC
.
Only the difference between two values returned by different calls to clock
is meaningful, as the beginning of the clock
era does not have to coincide with the start of the program. clock
time may advance faster or slower than the wall clock, depending on t