Hi
How can i find out the time taken to run each iteration in the program below?
ShuoCode:#include <stdio.h> #include <time.h> #include <iostream> #include <iomanip> using namespace std; int main () { int n, x = 0; for (n = 1000; n > 0; n--) { x = n + x; // print time taken } cout << x << endl; return 0; }



LinkBack URL
About LinkBacks



)