Changeset 313:64f8f7cc6168 in lemon-1.2 for lemon/time_measure.h
- Timestamp:
- 10/09/08 10:09:44 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/time_measure.h
r280 r313 312 312 ///Basically a Timer can be either running or stopped, 313 313 ///but it provides a bit finer control on the execution. 314 ///The \ref Timer also counts the number of \ref start()315 /// executions, and is stops only after the same amount (or more)316 /// \ref stop() "stop()"s. This can be useful e.g. to compute317 /// the running time314 ///The \ref lemon::Timer "Timer" also counts the number of 315 ///\ref lemon::Timer::start() "start()" executions, and it stops 316 ///only after the same amount (or more) \ref lemon::Timer::stop() 317 ///"stop()"s. This can be useful e.g. to compute the running time 318 318 ///of recursive functions. 319 ///320 319 321 320 ///@{ … … 473 472 }; 474 473 475 ///Same as \refTimer but prints a report on destruction.474 ///Same as Timer but prints a report on destruction. 476 475 477 476 ///Same as \ref Timer but prints a report on destruction. … … 492 491 std::ostream &_os; 493 492 public: 494 ///\e 495 493 ///Constructor 494 495 ///Constructor. 496 496 ///\param title This text will be printed before the ellapsed time. 497 497 ///\param os The stream to print the report to. 498 498 ///\param run Sets whether the timer should start immediately. 499 500 499 TimeReport(std::string title,std::ostream &os=std::cerr,bool run=true) 501 500 : Timer(run), _title(title), _os(os){} 502 /// \e Prints the ellapsed time on destruction.501 ///Destructor that prints the ellapsed time 503 502 ~TimeReport() 504 503 { … … 507 506 }; 508 507 509 ///'Do nothing' version of \refTimeReport508 ///'Do nothing' version of TimeReport 510 509 511 510 ///\sa TimeReport
Note: See TracChangeset
for help on using the changeset viewer.