#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. |
MLAPI::TimeObject::TimeObject | ( | ) | [inline] |
MLAPI::TimeObject::~TimeObject | ( | ) | [inline] |
double MLAPI::TimeObject::GetTime | ( | ) | const [inline] |
void MLAPI::TimeObject::ResetTimer | ( | ) | const [inline] |
void MLAPI::TimeObject::UpdateTime | ( | double | t | ) | const [inline] |
void MLAPI::TimeObject::UpdateTime | ( | ) | const [inline] |
Epetra_Time MLAPI::TimeObject::Time_ [mutable, protected] |
double MLAPI::TimeObject::TotalTime_ [mutable, protected] |