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 Time &other) const
 
Time operator+ (const TimeDuration &dur) const
 
Timeoperator+= (const Time &other)
 
Time operator- (const double &seconds) const
 
Time operator- (const Time &other) 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() [1/2]

Time::Time ( )

Definition at line 27 of file Time.cpp.

◆ Time() [2/2]

Time::Time ( timeval  time)

◆ ~Time()

Time::~Time ( )

Definition at line 32 of file Time.cpp.

Member Function Documentation

◆ now()

Time Time::now ( )
static

Definition at line 168 of file Time.cpp.

◆ operator+() [1/2]

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

Definition at line 137 of file Time.cpp.

◆ operator+() [2/2]

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

Result = (this) + Duration

Definition at line 153 of file Time.cpp.

◆ operator+=()

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

Definition at line 122 of file Time.cpp.

◆ operator-() [1/2]

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

Definition at line 264 of file Time.cpp.

◆ operator-() [2/2]

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

Definition at line 230 of file Time.cpp.

◆ operator<()

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

Definition at line 197 of file Time.cpp.

◆ operator==()

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

Definition at line 217 of file Time.cpp.

◆ operator>=()

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

Definition at line 179 of file Time.cpp.

◆ seconds()

double Time::seconds ( )

Zeit, in [s].

Definition at line 102 of file Time.cpp.

◆ set() [1/4]

void Time::set ( double  time)

Definition at line 69 of file Time.cpp.

◆ set() [2/4]

void Time::set ( timeval  time)

Definition at line 78 of file Time.cpp.

◆ set() [3/4]

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

Definition at line 92 of file Time.cpp.

◆ set() [4/4]

void Time::set ( UINT64  ntpTime)

Definition at line 84 of file Time.cpp.

◆ toLongString()

std::string Time::toLongString ( ) const

Definition at line 51 of file Time.cpp.

◆ toString()

std::string Time::toString ( ) const

Definition at line 40 of file Time.cpp.

◆ total_milliseconds()

UINT32 Time::total_milliseconds ( )

Definition at line 111 of file Time.cpp.

Member Data Documentation

◆ m_nanosecondsToSecondFractionNTP

const double Time::m_nanosecondsToSecondFractionNTP
staticprivate

Definition at line 78 of file Time.hpp.

◆ m_secondFractionNTPtoNanoseconds

const double Time::m_secondFractionNTPtoNanoseconds
staticprivate

Definition at line 77 of file Time.hpp.

◆ m_time

timeval Time::m_time
private

Definition at line 75 of file Time.hpp.

◆ secondsFrom1900to1970

const UINT64 Time::secondsFrom1900to1970
static

Definition at line 72 of file Time.hpp.


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


sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Thu Sep 8 2022 02:30:19