1 #ifndef OMG_DDS_CORE_TIME_HPP_ 2 #define OMG_DDS_CORE_TIME_HPP_ 45 static const Time invalid();
53 static const Time from_microsecs(int64_t microseconds);
59 static const Time from_millisecs(int64_t milliseconds);
65 static const Time from_secs(
double seconds);
75 explicit Time(int64_t sec, uint32_t nanosec = 0);
92 uint32_t nanosec()
const;
98 void nanosec(uint32_t ns);
111 int compare(
const Time& that)
const;
117 bool operator >(
const Time& that)
const;
123 bool operator >=(
const Time& that)
const;
140 bool operator <=(
const Time& that)
const;
145 bool operator <(
const Time& that)
const;
165 int64_t to_millisecs()
const;
172 int64_t to_microsecs()
const;
179 double to_secs()
const;
bool operator==(dds::core::null_type, const dds::core::Reference< D > &r)
const dds::core::Time operator+(const dds::core::Time &lhs, const dds::core::Duration &rhs)
const dds::core::Time operator-(const dds::core::Time &lhs, const dds::core::Duration &rhs)
bool operator!=(dds::core::null_type, const dds::core::Reference< D > &r)