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.

Constructor & Destructor Documentation

◆ Time()

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

Member Function Documentation

◆ get()

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

◆ operator double()

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

◆ operator+=()

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

◆ operator-()

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

◆ reset()

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

Member Data Documentation

◆ nsec

unsigned PLMD::Stopwatch::Time::nsec

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

◆ sec

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

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