How to calculate the execution time of a program in c?
by Ranganathan[ Edit ] 2012-08-28 10:28:25
#include <stdio.h>
#include <time.h>
void main()
{
clock_t start = clock();
/* Code you want timed here..
put your code here,then execute the program,then it will show
the execution time of the program..
*/
printf("Time elapsed: %fn", ((double)clock() - start);
}