Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | List of all members
Time Class Reference

#include <Time.hpp>

Public Member Functions

Time operator+ (const TimeDuration &dur) const
 
Time operator+ (const Time &other) const
 
Timeoperator+= (const Time &other)
 
Time operator- (const Time &other) const
 
Time operator- (const double &seconds) const
 
bool operator< (const Time &other) const
 
bool operator== (const Time &other) const
 
bool operator>= (const Time &other) const
 
double seconds ()
 
void set (double time)
 
void set (timeval time)
 
void set (UINT64 ntpSeconds, UINT32 ntpFractionalSeconds)
 
void set (UINT64 ntpTime)
 
 Time ()
 
 Time (timeval time)
 
std::string toLongString () const
 
std::string toString () const
 
UINT32 total_milliseconds ()
 
 ~Time ()
 

Static Public Member Functions

static Time now ()
 

Static Public Attributes

static const UINT64 secondsFrom1900to1970
 

Private Attributes

timeval m_time
 

Static Private Attributes

static const double m_nanosecondsToSecondFractionNTP
 
static const double m_secondFractionNTPtoNanoseconds
 

Detailed Description

Definition at line 44 of file Time.hpp.

Constructor & Destructor Documentation

Time::Time ( )

Definition at line 27 of file Time.cpp.

Time::Time ( timeval  time)
Time::~Time ( )

Definition at line 32 of file Time.cpp.

Member Function Documentation

Time Time::now ( )
static

Definition at line 168 of file Time.cpp.

Time Time::operator+ ( const TimeDuration dur) const

Result = (this) + Duration

Definition at line 153 of file Time.cpp.

Time Time::operator+ ( const Time other) const

Definition at line 137 of file Time.cpp.

Time & Time::operator+= ( const Time other)

Definition at line 122 of file Time.cpp.

Time Time::operator- ( const Time other) const

Definition at line 230 of file Time.cpp.

Time Time::operator- ( const double &  seconds) const

Definition at line 264 of file Time.cpp.

bool Time::operator< ( const Time other) const

Definition at line 197 of file Time.cpp.

bool Time::operator== ( const Time other) const

Definition at line 217 of file Time.cpp.

bool Time::operator>= ( const Time other) const

Definition at line 179 of file Time.cpp.

double Time::seconds ( )

Zeit, in [s].

Definition at line 102 of file Time.cpp.

void Time::set ( double  time)

Definition at line 69 of file Time.cpp.

void Time::set ( timeval  time)

Definition at line 78 of file Time.cpp.

void Time::set ( UINT64  ntpSeconds,
UINT32  ntpFractionalSeconds 
)

Definition at line 92 of file Time.cpp.

void Time::set ( UINT64  ntpTime)

Definition at line 84 of file Time.cpp.

std::string Time::toLongString ( ) const

Definition at line 51 of file Time.cpp.

std::string Time::toString ( ) const

Definition at line 40 of file Time.cpp.

UINT32 Time::total_milliseconds ( )

Definition at line 111 of file Time.cpp.

Member Data Documentation

const double Time::m_nanosecondsToSecondFractionNTP
staticprivate

Definition at line 78 of file Time.hpp.

const double Time::m_secondFractionNTPtoNanoseconds
staticprivate

Definition at line 77 of file Time.hpp.

timeval Time::m_time
private

Definition at line 75 of file Time.hpp.

const UINT64 Time::secondsFrom1900to1970
static

Definition at line 72 of file Time.hpp.


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


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Sat Jun 8 2019 17:57:33