I am trying to find the elapsed time for my function to operate. I have looked quite a few places on google; however, I have not been able to find a solution that works with my X-Win32 compiler. The code that i am trying now is as follows:
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
main(){
time_t start, finish;
time(&start);
....
time(&finish);
printf("The elapsed time is: %6.0f", difftime( finish, start));
}
Any suggestions would be greatly appreciated, Thanks!