Clock Function
Syntax:
Declaration :
clock_t clock(void);Calling :
clock(); OR clock()/CLOCKS_PER_SECOND;
Example:
#include <time.h>
#include <stdio.h>
int main()
{
printf("Elapsed time: %u secs.\n", clock()/CLOCKS_PER_SEC);
return 0;
}
Back