LifeV
WallClock Class Reference

Wall clock timer class. More...

#include <WallClock.hpp>

+ Collaboration diagram for WallClock:

Private Member Functions

 WallClock (const WallClock &)
 
WallClockoperator= (const WallClock &)
 

Private Attributes

time_Type M_startTime
 
time_Type M_stopTime
 
double M_elapsedTime
 

Public typedefs

typedef struct timeval time_Type
 

Constructor and destructor

 WallClock ()
 
 ~WallClock ()
 

Public methods

void start ()
 
void stop ()
 
void reset ()
 

Get methods

const doubleelapsedTime () const
 
const doublediff () const
 

Detailed Description

Wall clock timer class.

... totul e minunat ...

Definition at line 48 of file WallClock.hpp.

Member Typedef Documentation

◆ time_Type

typedef struct timeval time_Type

Definition at line 53 of file WallClock.hpp.

Constructor & Destructor Documentation

◆ WallClock() [1/2]

WallClock ( )

Definition at line 45 of file WallClock.cpp.

◆ ~WallClock()

~WallClock ( )

Definition at line 50 of file WallClock.cpp.

◆ WallClock() [2/2]

WallClock ( const WallClock )
private

Member Function Documentation

◆ start()

void start ( )

Definition at line 58 of file WallClock.cpp.

+ Here is the caller graph for this function:

◆ stop()

void stop ( )

Definition at line 63 of file WallClock.cpp.

+ Here is the caller graph for this function:

◆ reset()

void reset ( )

Definition at line 73 of file WallClock.cpp.

+ Here is the caller graph for this function:

◆ elapsedTime()

const double& elapsedTime ( ) const
inline

Definition at line 71 of file WallClock.hpp.

◆ diff()

const double& diff ( ) const
inline

Definition at line 75 of file WallClock.hpp.

◆ operator=()

WallClock& operator= ( const WallClock )
private

Field Documentation

◆ M_startTime

time_Type M_startTime
private

Definition at line 86 of file WallClock.hpp.

◆ M_stopTime

time_Type M_stopTime
private

Definition at line 87 of file WallClock.hpp.

◆ M_elapsedTime

double M_elapsedTime
private

Definition at line 89 of file WallClock.hpp.


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