|
ML Version of the Day
|
Class to track time spent in an object. More...
#include <MLAPI_TimeObject.h>


Public Member Functions | |
| TimeObject () | |
| Constructor, set counter to 0.0. | |
| ~TimeObject () | |
| Destructor. | |
| void | ResetTimer () const |
| Resets the internal timer. | |
| void | UpdateTime () const |
| Updates the internal timer with the time spent since the last call to ResetTimer(). | |
| void | UpdateTime (double t) const |
Updates the internal timer with input value t. | |
| double | GetTime () const |
| Returns the internally stored counter. | |
Protected Attributes | |
| Epetra_Time | Time_ |
| Object used to track time. | |
| double | TotalTime_ |
| Internal counter. | |
Class to track time spent in an object.
|
inline |
Constructor, set counter to 0.0.
References MLAPI::GetEpetra_Comm(), Epetra_Time::ResetStartTime(), Time_, and TotalTime_.
|
inline |
Returns the internally stored counter.
References TotalTime_.
Referenced by MLAPI::MultiLevelSA::Compute(), MLAPI::LoadBalanceOperator::Print(), MLAPI::MultiLevelAdaptiveSA::Print(), MLAPI::MultiLevelSA::Print(), MLAPI::MultiVector::Print(), and MLAPI::Operator::Print().
|
inline |
Resets the internal timer.
References Epetra_Time::ResetStartTime(), and Time_.
Referenced by MLAPI::LoadBalanceOperator::Apply(), MLAPI::MultiLevelAdaptiveSA::Apply(), MLAPI::MultiLevelSA::Apply(), MLAPI::Operator::Apply(), MLAPI::MultiLevelAdaptiveSA::Compute(), MLAPI::MultiLevelSA::Compute(), MLAPI::MultiVector::DotProduct(), MLAPI::MultiLevelAdaptiveSA::IncrementNullSpace(), MLAPI::MultiVector::Norm2(), MLAPI::MultiVector::NormInf(), MLAPI::MultiVector::NormOne(), MLAPI::MultiVector::Print(), MLAPI::MultiVector::Random(), MLAPI::MultiVector::Reciprocal(), MLAPI::MultiVector::Scale(), MLAPI::MultiLevelAdaptiveSA::SetupInitialNullSpace(), MLAPI::MultiVector::Sort(), MLAPI::MultiVector::Update(), MLAPI::MultiVector::Update(), MLAPI::MultiVector::Update(), and MLAPI::MultiVector::Update().
|
inline |
Updates the internal timer with the time spent since the last call to ResetTimer().
References Epetra_Time::ElapsedTime(), Time_, and TotalTime_.
Referenced by MLAPI::LoadBalanceOperator::Apply(), MLAPI::MultiLevelAdaptiveSA::Apply(), MLAPI::MultiLevelSA::Apply(), MLAPI::Operator::Apply(), MLAPI::MultiLevelAdaptiveSA::Compute(), MLAPI::MultiLevelSA::Compute(), MLAPI::MultiVector::DotProduct(), MLAPI::MultiLevelAdaptiveSA::IncrementNullSpace(), MLAPI::MultiVector::Norm2(), MLAPI::MultiVector::NormInf(), MLAPI::MultiVector::NormOne(), MLAPI::MultiVector::Print(), MLAPI::MultiVector::Random(), MLAPI::MultiVector::Reciprocal(), MLAPI::MultiVector::Scale(), MLAPI::MultiLevelAdaptiveSA::SetupInitialNullSpace(), MLAPI::MultiVector::Sort(), MLAPI::MultiVector::Update(), MLAPI::MultiVector::Update(), MLAPI::MultiVector::Update(), and MLAPI::MultiVector::Update().
|
inline |
Updates the internal timer with input value t.
References TotalTime_.
|
mutableprotected |
Object used to track time.
Referenced by ResetTimer(), TimeObject(), and UpdateTime().
|
mutableprotected |
Internal counter.
Referenced by GetTime(), TimeObject(), UpdateTime(), and UpdateTime().