![]() |
LifeV
|
#include <LifeChrono.hpp>
Collaboration diagram for LifeChrono:Public Types | |
| typedef Epetra_Comm | comm_Type |
| typedef std::shared_ptr< comm_Type > | commPtr_Type |
Constructor | |
| LifeChrono () | |
Public methods | |
| void | reset () |
| void | start () |
| Start the timer. More... | |
| void | stop () |
| Stop the timer. More... | |
| Real | diff () |
| Compute the difference in time between start and stop. More... | |
| Real | globalDiff (const comm_Type &comm) |
| Compute the global difference in time between start and stop for all the processes in the communicator. More... | |
| Real | diffCumul () |
| Return a cumulative time difference. More... | |
Private members | |
| clock_t | M_t1 |
| clock_t | M_t2 |
| clock_t | M_dt |
| bool | M_running |
This class is used for timing sections of code
Definition at line 59 of file LifeChrono.hpp.
| typedef Epetra_Comm comm_Type |
Definition at line 66 of file LifeChrono.hpp.
| typedef std::shared_ptr< comm_Type > commPtr_Type |
Definition at line 67 of file LifeChrono.hpp.
|
inline |
|
inline |
|
inline |
Start the timer.
Definition at line 93 of file LifeChrono.hpp.
Here is the caller graph for this function:
|
inline |
Stop the timer.
Definition at line 100 of file LifeChrono.hpp.
Here is the caller graph for this function:
|
inline |
Compute the difference in time between start and stop.
Definition at line 111 of file LifeChrono.hpp.
Here is the caller graph for this function:Compute the global difference in time between start and stop for all the processes in the communicator.
| comm | the global communicator |
Definition at line 126 of file LifeChrono.hpp.
|
inline |
Return a cumulative time difference.
Definition at line 146 of file LifeChrono.hpp.
Here is the caller graph for this function:
|
private |
Definition at line 160 of file LifeChrono.hpp.
|
private |
Definition at line 160 of file LifeChrono.hpp.
|
private |
Definition at line 160 of file LifeChrono.hpp.
|
private |
Definition at line 161 of file LifeChrono.hpp.