MLAPI::TimeObject Class Reference

Class to track time spent in an object. More...

#include <MLAPI_TimeObject.h>

Inheritance diagram for MLAPI::TimeObject:

Inheritance graph
[legend]

List of all members.

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.


Detailed Description

Author:
Marzio Sala, SNL 9214
Date:
Last updated on Feb-05.

Constructor & Destructor Documentation

MLAPI::TimeObject::TimeObject (  )  [inline]

MLAPI::TimeObject::~TimeObject (  )  [inline]


Member Function Documentation

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]


Member Data Documentation

Epetra_Time MLAPI::TimeObject::Time_ [mutable, protected]

double MLAPI::TimeObject::TotalTime_ [mutable, protected]


The documentation for this class was generated from the following file: