#include <Teuchos_TimeMonitor.hpp>


Public Member Functions | |
Constructor/Destructor | |
| TimeMonitor (Time &timer, bool reset=false) | |
| Constructor starts timer. | |
| ~TimeMonitor () | |
| Destructor causes timer to stop. | |
Static Public Member Functions | |
Static functions | |
| 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. | |
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!
Definition at line 110 of file Teuchos_TimeMonitor.hpp.
| Teuchos::TimeMonitor::TimeMonitor | ( | Time & | timer, | |
| bool | reset = false | |||
| ) | [inline] |
| Teuchos::TimeMonitor::~TimeMonitor | ( | ) | [inline] |
| static Teuchos::RCP<Time> Teuchos::TimeMonitor::getNewTimer | ( | const std::string & | name | ) | [inline, static] |
Wrapping of getNewCounter() for backwards compatibiity with old code.
Definition at line 138 of file Teuchos_TimeMonitor.hpp.
| void Teuchos::TimeMonitor::summarize | ( | std::ostream & | out = std::cout, |
|
| const bool | alwaysWriteLocal = false, |
|||
| const bool | writeGlobalStats = true, |
|||
| const bool | writeZeroTimers = true | |||
| ) | [static] |
Print summary statistics for a group of timers.
Timings are gathered from all processors
Definition at line 63 of file Teuchos_TimeMonitor.cpp.
| void Teuchos::TimeMonitor::zeroOutTimers | ( | ) | [static] |
Reset the global timers to zero.
Preconditions:
Definition at line 40 of file Teuchos_TimeMonitor.cpp.
1.5.9