hi ,
i need to calculate the actual running time of my code .
that is i don't want the time wen my application is swapped out of the memory to show up in the time of the program,which actually happens wen i use the following :
please let me know if there is any other way to time the program,so the constraint i have specified is taken care of.
thanks in advance.
i need to calculate the actual running time of my code .
that is i don't want the time wen my application is swapped out of the memory to show up in the time of the program,which actually happens wen i use the following :
Code:
time_t initialtime; time_t finaltime; (void)time(&initialtime); //do something (void)time(&finaltime);//end of the time int time_taken = finaltime - initialtime;
thanks in advance.
Comment