![]() |
LifeV
|
#include <LifeChronoManager.hpp>
Collaboration diagram for LifeChronoManager< TimerType >:Public Types | |
| typedef TimerType | timer_Type |
| typedef std::map< std::string const, timer_Type * > | timerList_Type |
| typedef std::shared_ptr< Epetra_Comm const > | commPtr_Type |
Public Member Functions | |
| LifeChronoManager (commPtr_Type comm) | |
| Constructor. More... | |
Protected Attributes | |
| timerList_Type | M_timerList |
| UInt | M_stringMaxSize |
| commPtr_Type | M_comm |
Static Protected Attributes | |
| static UInt const | S_printSize = 80 |
| static UInt const | S_columnSize = 16 |
LifeChronoManager - chronometer manager class | |
| void | add (std::string const &name, timer_Type *timer) |
| Register a timer. More... | |
| void | print (std::ostream &out=std::cout) |
| Print out strings and time diffs for the registered timers. More... | |
This class is used for managing multiple chronometers
Definition at line 56 of file LifeChronoManager.hpp.
| typedef TimerType timer_Type |
Definition at line 59 of file LifeChronoManager.hpp.
| typedef std::map<std::string const, timer_Type*> timerList_Type |
Definition at line 60 of file LifeChronoManager.hpp.
| typedef std::shared_ptr<Epetra_Comm const> commPtr_Type |
Definition at line 61 of file LifeChronoManager.hpp.
|
inline |
|
inline |
Register a timer.
| name | String to be displayed when printing data relative to the timer |
| timer | A pointer to the timer to be registered |
Definition at line 95 of file LifeChronoManager.hpp.
|
inline |
Print out strings and time diffs for the registered timers.
| out | Output stream |
Definition at line 106 of file LifeChronoManager.hpp.
|
protected |
Definition at line 86 of file LifeChronoManager.hpp.
|
protected |
Definition at line 87 of file LifeChronoManager.hpp.
|
protected |
Definition at line 88 of file LifeChronoManager.hpp.
|
staticprotected |
Definition at line 90 of file LifeChronoManager.hpp.
|
staticprotected |
Definition at line 91 of file LifeChronoManager.hpp.