I would like the time total time taken to be displayed after my program completes:
I have looked all over the net and attempted to try some things, but nothing has seemed to work. Any ideas?
- Code:
#include <stdio.h>
#include <stdlib.h>
main ()
{
long ctr = 1;
for(ctr = 1; ctr <=999999; ctr++)
{
printf("Still counting...");
printf("%d \n", ctr);
}
system("PAUSE");
return 0;
}
I have looked all over the net and attempted to try some things, but nothing has seemed to work. Any ideas?