source:
lemon-0.x/src/test/time_measure.cc
@
551:d167149bde95
| Last change on this file since 551:d167149bde95 was 545:367929c61461, checked in by , 22 years ago | |
|---|---|
| File size: 295 bytes | |
| Line | |
|---|---|
| 1 | #include <hugo/time_measure.h> |
| 2 | |
| 3 | ///\file \brief Test cases for time_measure.h |
| 4 | /// |
| 5 | ///\todo To be extended |
| 6 | |
| 7 | |
| 8 | using namespace hugo; |
| 9 | |
| 10 | int main() |
| 11 | { |
| 12 | int j=0; |
| 13 | Timer T; |
| 14 | for(int i=0;i++;i<100) j+=2; |
| 15 | std::cout << T << '\n'; |
| 16 | T.reset(); |
| 17 | for(int i=0;i++;i<100) j+=2; |
| 18 | std::cout << T << '\n'; |
| 19 | } |
Note: See TracBrowser
for help on using the repository browser.

