Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Timer Class Reference

#include <MsqTimer.hpp>

Public Member Functions

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

Private Attributes

double atBirth
 
double atLastCheck
 

Detailed Description

Definition at line 54 of file includeLinks/MsqTimer.hpp.

Constructor & Destructor Documentation

Timer ( )

Definition at line 80 of file Misc/MsqTimer.cpp.

References Timer::atBirth, and Timer::atLastCheck.

81  : atBirth(now())
82 {
84 }
Timer ( )

Member Function Documentation

void reset ( )

Definition at line 86 of file Misc/MsqTimer.cpp.

Referenced by TerminationCriterion::reset_inner().

87 {
88  atBirth=now();
90 }

Here is the caller graph for this function:

void reset ( )
double since_birth ( ) const
double since_birth ( ) const

Definition at line 100 of file Misc/MsqTimer.cpp.

Referenced by ConjugateGradient::optimize_vertex_positions(), and TerminationCriterion::terminate().

101 {
102  return now() - atBirth;
103 }

Here is the caller graph for this function:

double since_last_check ( )

Definition at line 92 of file Misc/MsqTimer.cpp.

93 {
94  double right_now = now();
95  double rv = right_now - atLastCheck;
96  atLastCheck = right_now;
97  return rv;
98 }
double since_last_check ( )

Member Data Documentation

double atBirth
private

Definition at line 71 of file includeLinks/MsqTimer.hpp.

Referenced by Timer::Timer().

double atLastCheck
private

Definition at line 72 of file includeLinks/MsqTimer.hpp.

Referenced by Timer::Timer().


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