src/test/time_measure_test.cc
changeset 708 429dfcbbf47d
parent 566 14355e502338
child 906 17f31d280385
equal deleted inserted replaced
1:3ea8d0f2ef25 0:c97a0ab683d2
     9 
     9 
    10 int main()
    10 int main()
    11 {
    11 {
    12   int j=0;
    12   int j=0;
    13   Timer T;
    13   Timer T;
    14   for(int i=0;i++;i<100) j+=2;
    14   for(int i=0;i<100;i++) j+=2;
    15   std::cout << T << '\n';
    15   std::cout << T << '\n';
    16   T.reset();
    16   T.reset();
    17   for(int i=0;i++;i<100) j+=2;
    17   for(int i=0;i<100;i++) j+=2;
    18   std::cout << T << '\n';
    18   std::cout << T << '\n';
    19 
    19   
    20   return 0;
    20   return 0;
    21 }
    21 }