run time in c

[ad_1]

run time in c
#include 
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);

[ad_2]

Content Protection by DMCA.com
Please Share