MOAB: Mesh Oriented datABase
(version 5.4.1)
|
#include <MsqTimer.hpp>
Public Member Functions | |
Timer () | |
void | reset () |
double | since_last_check () |
double | since_birth () const |
Private Attributes | |
double | atBirth |
double | atLastCheck |
Definition at line 44 of file MsqTimer.hpp.
Definition at line 70 of file MsqTimer.cpp.
References atBirth, and atLastCheck.
: atBirth( now() ) { atLastCheck = atBirth; }
void MBMesquite::Timer::reset | ( | ) |
Definition at line 75 of file MsqTimer.cpp.
Referenced by main(), and MBMesquite::TerminationCriterion::reset_inner().
{ atBirth = now(); atLastCheck = atBirth; }
double MBMesquite::Timer::since_birth | ( | ) | const |
Definition at line 89 of file MsqTimer.cpp.
Referenced by MBMesquite::TerminationCriterion::accumulate_inner(), main(), MBMesquite::ConjugateGradient::optimize_vertex_positions(), MBMesquite::TerminationCriterion::reset_inner(), run(), MBMesquite::ShapeImprovementWrapper::run_wrapper(), ParShapeImprover::ParShapeImprovementWrapper::run_wrapper(), MBMesquite::TerminationCriterion::terminate(), and TerminationCriterionTest::test_cpu_time_common().
{ return now() - atBirth; }
double MBMesquite::Timer::since_last_check | ( | ) |
Definition at line 81 of file MsqTimer.cpp.
{ double right_now = now(); double rv = right_now - atLastCheck; atLastCheck = right_now; return rv; }
double MBMesquite::Timer::atBirth [private] |
Definition at line 61 of file MsqTimer.hpp.
Referenced by Timer().
double MBMesquite::Timer::atLastCheck [private] |
Definition at line 62 of file MsqTimer.hpp.
Referenced by Timer().