ML  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
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]
Collaboration diagram for MLAPI::TimeObject:
Collaboration graph
[legend]

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

Class to track time spent in an object.

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

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