Changeset 0e5675 for src/Helpers/unittests/ChronosUnitTest.cpp
- Timestamp:
- Apr 6, 2011, 4:05:13 PM (15 years ago)
- Children:
- e3ace2
- Parents:
- 9ebc9d
- git-author:
- Frederik Heber <heber@…> (04/06/11 12:26:41)
- git-committer:
- Frederik Heber <heber@…> (04/06/11 16:05:13)
- File:
-
- 1 edited
-
src/Helpers/unittests/ChronosUnitTest.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Helpers/unittests/ChronosUnitTest.cpp
r9ebc9d r0e5675 25 25 26 26 #include "Chronos.hpp" 27 #include "Info.hpp"28 27 29 28 #include "ChronosUnitTest.hpp" … … 41 40 void dummy() 42 41 { 43 Info FunctionInfo(__func__);42 Chronos::getInstance().startTiming(__func__); 44 43 for (int i=0;i<10000000;++i) 45 44 std::cout << ""; 45 Chronos::getInstance().endTiming(__func__); 46 46 } 47 47 48 48 void dummy_two() 49 49 { 50 Info FunctionInfo(__func__);50 Chronos::getInstance().startTiming(__func__); 51 51 for (int i=0;i<1000000;++i) 52 52 std::cout << ""; 53 Chronos::getInstance().endTiming(__func__); 53 54 } 54 55 … … 105 106 // "inline" dummy 106 107 { 107 Info DummyInfo("dummy_three");108 Chronos::getInstance().startTiming("dummy_three"); 108 109 for (int i=0;i<1000000;++i) 109 110 std::cout << ""; 111 Chronos::getInstance().endTiming("dummy_three"); 110 112 } 111 113 CPPUNIT_ASSERT( Chronos::getInstance().TimeRunning.find(std::string("dummy_three"))
Note:
See TracChangeset
for help on using the changeset viewer.
