Can someone give me a quick example of using time.h to time how long something runs for?
i would like to output in human readable time.
I was doing this:
but it is not giving me what i want.Code:
clock_t start = clock();
clock_t end = clock();
printf("\t Time : %d \n", (end - start)/CLOCKS_PER_SEC);