10 #ifndef TIMESTAMP_HPP_
11 #define TIMESTAMP_HPP_
55 unsigned int toMs()
const;
61 struct timeval timestamp;
66 #endif // TIMESTAMP_HPP_
TimeStamp operator-(const TimeStamp &other) const
Definition: TimeStamp.cpp:58
Class representing time stamp. Allows for basic operations like adding and subtracting time stamps...
Definition: TimeStamp.hpp:25
TimeStamp operator+(const TimeStamp &other) const
Definition: TimeStamp.cpp:49
bool operator>=(const TimeStamp &other) const
Definition: TimeStamp.cpp:102
TimeStamp & operator+=(const TimeStamp &other)
Definition: TimeStamp.cpp:67
TimeStamp & operator-=(const TimeStamp &other)
Definition: TimeStamp.cpp:76
void setNow()
Definition: TimeStamp.cpp:44
virtual ~TimeStamp()
Destructor, virtual by default.
Definition: TimeStamp.cpp:40
bool operator<=(const TimeStamp &other) const
Definition: TimeStamp.cpp:91
bool operator<(const TimeStamp &other) const
Definition: TimeStamp.cpp:85
unsigned int toMs() const
Definition: TimeStamp.cpp:115
bool operator>(const TimeStamp &other) const
Definition: TimeStamp.cpp:96
std::string toString() const
Definition: TimeStamp.cpp:108
TimeStamp()
Constructor.
Definition: TimeStamp.cpp:15