7bool operator==(timespec
const& lhs, timespec
const& rhs)
9 return (lhs.tv_sec == rhs.tv_sec) && (lhs.tv_nsec == rhs.tv_nsec);
17bool operator<(timespec
const& lhs, timespec
const& rhs)
19 if (lhs.tv_sec < rhs.tv_sec)
23 if (lhs.tv_sec > rhs.tv_sec)
27 return lhs.tv_nsec < rhs.tv_nsec;
32 return (lhs < rhs) || (lhs == rhs);
35bool operator>(timespec
const& lhs, timespec
const& rhs)
bool operator>(timespec const &lhs, timespec const &rhs)
bool operator==(timespec const &lhs, timespec const &rhs)
bool operator>=(timespec const &lhs, timespec const &rhs)
bool operator!=(timespec const &lhs, timespec const &rhs)
bool operator<=(timespec const &lhs, timespec const &rhs)
bool operator<(timespec const &lhs, timespec const &rhs)