Timesamp representation and utilities. More...
Functions | |
Timestamp () | |
Default constructor, inits the Timestamp to 0. More... | |
Timestamp (uint64_t _data_ns) | |
Init. the Timestamp to a number in nanoseconds. More... | |
uint64_t | getNanoseconds () |
Gets the timestamp in nanoseconds. More... | |
uint64_t | getMicroseconds () |
Gets the timestamp in microseconds. More... | |
uint64_t | getMilliseconds () |
Gets the timestamp in milliseconds. More... | |
uint64_t | getSeconds () |
Gets the timestamp in seconds. More... | |
void | setNanoseconds (uint64_t t_ns) |
Sets the timestamp to a value in nanoseconds. More... | |
void | setMicroseconds (uint64_t t_us) |
Sets the timestamp to a value in microoseconds. More... | |
void | setMilliseconds (uint64_t t_ms) |
Sets the timestamp to a value in milliseconds. More... | |
void | setSeconds (uint64_t t_s) |
Sets the timestamp to a value in seconds. More... | |
Timestamp & | operator= (Timestamp other) |
Timestamp & | operator= (uint64_t other_data_ns) |
Timestamp & | operator+= (const Timestamp &rhs) |
Timestamp & | operator-= (const Timestamp &rhs) |
Timestamp & | operator*= (const Timestamp &rhs) |
Timestamp & | operator/= (const Timestamp &rhs) |
operator unsigned long long int () const | |
Attributes | |
uint64_t | data_ns = 0 |
Timestamp in nanoseconds. More... | |
Timesamp representation and utilities.
|
inline |
Gets the timestamp in nanoseconds.
|
inline |
Gets the timestamp in microseconds.
|
inline |
Gets the timestamp in milliseconds.
|
inline |
Gets the timestamp in seconds.
|
inline |
Sets the timestamp to a value in nanoseconds.
|
inline |
Sets the timestamp to a value in microoseconds.
|
inline |
Sets the timestamp to a value in milliseconds.
|
inline |
Sets the timestamp to a value in seconds.
|
inline |
|
inline |
uint64_t data_ns = 0 |
Timestamp in nanoseconds.
Referenced by Timestamp::getMicroseconds(), Timestamp::getMilliseconds(), Timestamp::getNanoseconds(), Timestamp::getSeconds(), Timestamp::operator unsigned long long int(), Timestamp::operator*=(), Timestamp::operator+=(), Timestamp::operator-=(), Timestamp::operator/=(), sl::operator<(), Timestamp::operator=(), sl::operator==(), Timestamp::setMicroseconds(), Timestamp::setMilliseconds(), Timestamp::setNanoseconds(), and Timestamp::setSeconds().