MOAB: Mesh Oriented datABase  (version 5.4.1)
MBMesquite::Timer Class Reference

#include <MsqTimer.hpp>

Public Member Functions

 Timer ()
void reset ()
double since_last_check ()
double since_birth () const

Private Attributes

double atBirth
double atLastCheck

Detailed Description

Definition at line 44 of file MsqTimer.hpp.


Constructor & Destructor Documentation

Definition at line 70 of file MsqTimer.cpp.

References atBirth, and atLastCheck.

                       : atBirth( now() )
{
    atLastCheck = atBirth;
}

Member Function Documentation

Definition at line 75 of file MsqTimer.cpp.

Referenced by main(), and MBMesquite::TerminationCriterion::reset_inner().

{
    atBirth     = now();
    atLastCheck = atBirth;
}

Definition at line 81 of file MsqTimer.cpp.

{
    double right_now = now();
    double rv        = right_now - atLastCheck;
    atLastCheck      = right_now;
    return rv;
}

Member Data Documentation

double MBMesquite::Timer::atBirth [private]

Definition at line 61 of file MsqTimer.hpp.

Referenced by Timer().

Definition at line 62 of file MsqTimer.hpp.

Referenced by Timer().

List of all members.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines