Changeset 1960:a60b681d0825 in lemon-0.x for test/time_measure_test.cc
- Timestamp:
- 02/06/06 10:11:53 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2536
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/time_measure_test.cc
r1956 r1960 29 29 { 30 30 double d=0; 31 for(int i=0;i<1000 0;i++)31 for(int i=0;i<1000;i++) 32 32 d+=0.1; 33 } 34 35 void g() 36 { 37 static Timer T; 38 39 double d=0; 40 for(int i=0;i<1000;i++) 41 TimeStamp x(T); 33 42 } 34 43 … … 43 52 std::cout << T << '\n'; 44 53 TimeStamp full; 45 TimeStamp t=runningTimeTest(f,1,&n,&full); 54 TimeStamp t; 55 t=runningTimeTest(f,1,&n,&full); 56 std::cout << t << " (" << n << " tests)\n"; 57 std::cout << "Total: " << full << "\n"; 58 59 t=runningTimeTest(g,1,&n,&full); 46 60 std::cout << t << " (" << n << " tests)\n"; 47 61 std::cout << "Total: " << full << "\n";
Note: See TracChangeset
for help on using the changeset viewer.