Changeset 2543:a0443c411220 in lemon-0.x for lemon
- Timestamp:
- 12/19/07 10:16:22 (16 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3420
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/time_measure.h
r2408 r2543 242 242 /// ... 243 243 /// 244 /// Timer T;244 /// Timer t; 245 245 /// doSomething(); 246 /// std::cout << T<< '\n';247 /// T.restart();246 /// std::cout << t << '\n'; 247 /// t.restart(); 248 248 /// doSomethingElse(); 249 /// std::cout << T<< '\n';249 /// std::cout << t << '\n'; 250 250 /// 251 251 /// ... … … 262 262 ///granularity. 263 263 ///Therefore this tool is not appropriate to measure very short times. 264 ///Also, if you start and stop the timer very frequently, it could lead 264 ///Also, if you start and stop the timer very frequently, it could lead to 265 265 ///distorted results. 266 266 /// … … 349 349 ///Halt (i.e stop immediately) the time counters 350 350 351 ///This function stops immediately the time counters. 351 ///This function stops immediately the time counters, i.e. <tt>t.stop()</tt> 352 ///is a faster 353 ///equivalent of the following. 354 ///\code 355 /// while(t.running()) t.stop() 356 ///\endcode 357 /// 352 358 /// 353 359 ///\sa stop() … … 423 429 ///the ellapsed time like this. 424 430 ///\code 425 /// Timer T;431 /// Timer t; 426 432 /// doSomething(); 427 /// std::cout << T<< '\n';433 /// std::cout << t << '\n'; 428 434 ///\endcode 429 435 operator TimeStamp () const … … 445 451 /// void myAlg(ListGraph &g,int n) 446 452 /// { 447 /// TimeReport TR("Running time of myAlg: ");453 /// TimeReport tr("Running time of myAlg: "); 448 454 /// ... //Here comes the algorithm 449 455 /// }
Note: See TracChangeset
for help on using the changeset viewer.