| ||TimeMonitor (Time &timer, bool reset=false)|
| ||Constructor starts timer. |
| ||~TimeMonitor ()|
| ||Destructor causes timer to stop. |
|static Teuchos::RCP< Time > ||getNewTimer (const std::string &name)|
| ||Wrapping of getNewCounter() for backwards compatibiity with old code. |
|static void ||zeroOutTimers ()|
| ||Reset the global timers to zero. |
|static void ||summarize (std::ostream &out=std::cout, const bool alwaysWriteLocal=false, const bool writeGlobalStats=true, const bool writeZeroTimers=true)|
| ||Print summary statistics for a group of timers. |
A timer class that starts when constructed and stops when the destructor is called.
Termination upon destruction lets this timer behave correctly even if scope is exited because of an std::exception.
NOTE: It is critical that this class only be used to time functions that are called only within the main program and not at pre-program setup or post-program teardown!
- Teuchos::TimeMonitor uses the Teuchos::Time class internally.
Definition at line 119 of file Teuchos_TimeMonitor.hpp.