LibMultiSense
LibMultiSense Documentation
crl::multisense::details::utility::TimeStamp Class Reference

#include <TimeStamp.hh>

Public Member Functions

 TimeStamp ()
 
 TimeStamp (int32_t seconds, int32_t microSeconds)
 
 TimeStamp (int64_t nanoseconds)
 
 TimeStamp (const struct timeval &value)
 
void set (const struct timeval &value)
 
void set (int32_t seconds, int32_t microSeconds)
 
int32_t getSeconds () const
 
int32_t getMicroSeconds () const
 
int64_t getNanoSeconds () const
 
TimeStamp operator+ (TimeStamp const &other) const
 
TimeStamp operator- (TimeStamp const &other) const
 
TimeStampoperator+= (TimeStamp const &other)
 
TimeStampoperator-= (TimeStamp const &other)
 

Static Public Member Functions

static TimeStamp getCurrentTime ()
 

Private Attributes

struct timeval time
 

Detailed Description

Definition at line 69 of file TimeStamp.hh.

Constructor & Destructor Documentation

◆ TimeStamp() [1/4]

crl::multisense::details::utility::TimeStamp::TimeStamp ( )

Definition at line 61 of file TimeStamp.cc.

◆ TimeStamp() [2/4]

crl::multisense::details::utility::TimeStamp::TimeStamp ( int32_t  seconds,
int32_t  microSeconds 
)

Definition at line 69 of file TimeStamp.cc.

◆ TimeStamp() [3/4]

crl::multisense::details::utility::TimeStamp::TimeStamp ( int64_t  nanoseconds)

Definition at line 77 of file TimeStamp.cc.

◆ TimeStamp() [4/4]

crl::multisense::details::utility::TimeStamp::TimeStamp ( const struct timeval &  value)

Definition at line 90 of file TimeStamp.cc.

Member Function Documentation

◆ getCurrentTime()

TimeStamp crl::multisense::details::utility::TimeStamp::getCurrentTime ( )
static

Definition at line 140 of file TimeStamp.cc.

◆ getMicroSeconds()

int32_t crl::multisense::details::utility::TimeStamp::getMicroSeconds ( ) const

Definition at line 198 of file TimeStamp.cc.

◆ getNanoSeconds()

int64_t crl::multisense::details::utility::TimeStamp::getNanoSeconds ( ) const

Definition at line 206 of file TimeStamp.cc.

◆ getSeconds()

int32_t crl::multisense::details::utility::TimeStamp::getSeconds ( ) const

Definition at line 190 of file TimeStamp.cc.

◆ operator+()

TimeStamp crl::multisense::details::utility::TimeStamp::operator+ ( TimeStamp const &  other) const

Definition at line 211 of file TimeStamp.cc.

◆ operator+=()

TimeStamp & crl::multisense::details::utility::TimeStamp::operator+= ( TimeStamp const &  other)

Definition at line 225 of file TimeStamp.cc.

◆ operator-()

TimeStamp crl::multisense::details::utility::TimeStamp::operator- ( TimeStamp const &  other) const

Definition at line 218 of file TimeStamp.cc.

◆ operator-=()

TimeStamp & crl::multisense::details::utility::TimeStamp::operator-= ( TimeStamp const &  other)

Definition at line 231 of file TimeStamp.cc.

◆ set() [1/2]

void crl::multisense::details::utility::TimeStamp::set ( const struct timeval &  value)

Definition at line 98 of file TimeStamp.cc.

◆ set() [2/2]

void crl::multisense::details::utility::TimeStamp::set ( int32_t  seconds,
int32_t  microSeconds 
)

Definition at line 106 of file TimeStamp.cc.

Member Data Documentation

◆ time

struct timeval crl::multisense::details::utility::TimeStamp::time
private

Definition at line 77 of file TimeStamp.hh.


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