Question : run time in c
Answered by : comfortable-capuchin-4qxpaw65tw27
#include <time.h>
clock_t begin = clock();
/* here, do your time-consuming job */
clock_t end = clock();
double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;
printf("%f\n", time_spent);
Source : https://stackoverflow.com/questions/5248915/execution-time-of-c-program | Last Update : Sun, 28 Jun 20