execution time of c program

Solutions on MaxInterview for execution time of c program by the best coders in the world

showing results for - "execution time of c program"
Brinley
13 Aug 2019
1clock_t begin = clock();
2
3/* here, do your time-consuming job */
4
5clock_t end = clock();
6double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;
7