Changeset 558:f53d641aa967 in lemon-1.2 for test/time_measure_test.cc
- Timestamp:
- 03/27/09 18:49:25 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/time_measure_test.cc
r440 r558 40 40 Timer T; 41 41 unsigned int n; 42 for(n=0;T.realTime()< 1.0;n++) ;42 for(n=0;T.realTime()<0.1;n++) ; 43 43 std::cout << T << " (" << n << " time queries)\n"; 44 T.restart(); 45 while(T.realTime()<2.0) ; 46 std::cout << T << '\n'; 44 47 45 TimeStamp full; 48 46 TimeStamp t; 49 t=runningTimeTest(f, 1,&n,&full);47 t=runningTimeTest(f,0.1,&n,&full); 50 48 std::cout << t << " (" << n << " tests)\n"; 51 49 std::cout << "Total: " << full << "\n"; 52 50 53 t=runningTimeTest(g, 1,&n,&full);51 t=runningTimeTest(g,0.1,&n,&full); 54 52 std::cout << t << " (" << n << " tests)\n"; 55 53 std::cout << "Total: " << full << "\n";
Note: See TracChangeset
for help on using the changeset viewer.