All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PLMD::Stopwatch::Time Class Reference

Class to hold the value of absolute time. More...

Public Member Functions

 Time ()
 
Time operator- (const Time &) const
 
const Timeoperator+= (const Time &)
 
 operator double () const
 
void reset ()
 

Static Public Member Functions

static Time get ()
 

Public Attributes

unsigned long sec
 
unsigned nsec
 I store nanosecond so as to allow high resolution clocks (even if likely time will be measured in microseconds) More...
 

Detailed Description

Class to hold the value of absolute time.

Definition at line 100 of file Stopwatch.h.

Constructor & Destructor Documentation

PLMD::Stopwatch::Time::Time ( )

Definition at line 79 of file Stopwatch.cpp.

Member Function Documentation

Stopwatch::Time PLMD::Stopwatch::Time::get ( )
static

Definition at line 58 of file Stopwatch.cpp.

PLMD::Stopwatch::Time::operator double ( ) const

Definition at line 54 of file Stopwatch.cpp.

const Stopwatch::Time & PLMD::Stopwatch::Time::operator+= ( const Time t2)

Definition at line 94 of file Stopwatch.cpp.

Stopwatch::Time PLMD::Stopwatch::Time::operator- ( const Time t2) const

Definition at line 82 of file Stopwatch.cpp.

void PLMD::Stopwatch::Time::reset ( )

Definition at line 74 of file Stopwatch.cpp.

Member Data Documentation

unsigned PLMD::Stopwatch::Time::nsec

I store nanosecond so as to allow high resolution clocks (even if likely time will be measured in microseconds)

Definition at line 105 of file Stopwatch.h.

unsigned long PLMD::Stopwatch::Time::sec

Definition at line 102 of file Stopwatch.h.


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