equal
deleted
inserted
replaced
34 { |
34 { |
35 Timer T; |
35 Timer T; |
36 int n; |
36 int n; |
37 for(n=0;T.realTime()<1.0;n++) ; |
37 for(n=0;T.realTime()<1.0;n++) ; |
38 std::cout << T << " (" << n << " time queries)\n"; |
38 std::cout << T << " (" << n << " time queries)\n"; |
39 T.reset(); |
39 T.restart(); |
40 while(T.realTime()<2.0) ; |
40 while(T.realTime()<2.0) ; |
41 std::cout << T << '\n'; |
41 std::cout << T << '\n'; |
42 TimeStamp full; |
42 TimeStamp full; |
43 TimeStamp t=runningTimeTest(f,1,&n,&full); |
43 TimeStamp t=runningTimeTest(f,1,&n,&full); |
44 std::cout << t << " (" << n << " tests)\n"; |
44 std::cout << t << " (" << n << " tests)\n"; |