~alan-griffiths/mir/fix-1654023

« back to all changes in this revision

Viewing changes to include/common/mir/time/posix_timestamp.h

  • Committer: Daniel van Vugt
  • Date: 2016-12-09 02:54:31 UTC
  • mfrom: (3873 development-branch)
  • mto: This revision was merged to the branch mainline in revision 3882.
  • Revision ID: daniel.van.vugt@canonical.com-20161209025431-1ue63f7b20dz6g5h
Merge latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    return a.nanoseconds < b.nanoseconds;
104
104
}
105
105
 
 
106
inline bool operator>=(PosixTimestamp const& a, PosixTimestamp const& b)
 
107
{
 
108
    assert_same_clock(a, b);
 
109
    return a.nanoseconds >= b.nanoseconds;
 
110
}
 
111
 
 
112
inline bool operator<=(PosixTimestamp const& a, PosixTimestamp const& b)
 
113
{
 
114
    assert_same_clock(a, b);
 
115
    return a.nanoseconds <= b.nanoseconds;
 
116
}
 
117
 
106
118
inline void sleep_until(PosixTimestamp const& t)
107
119
{
108
120
    long long ns = t.nanoseconds.count();