small fixes
This commit is contained in:
parent
52a4a46cca
commit
3fda653b45
1 changed files with 4 additions and 0 deletions
|
|
@ -86,6 +86,10 @@ namespace fc {
|
||||||
friend bool operator == ( const time_point_sec& a, const time_point_sec& b ) { return a.utc_seconds == b.utc_seconds; }
|
friend bool operator == ( const time_point_sec& a, const time_point_sec& b ) { return a.utc_seconds == b.utc_seconds; }
|
||||||
time_point_sec& operator += ( uint32_t m ) { utc_seconds+=m; return *this; }
|
time_point_sec& operator += ( uint32_t m ) { utc_seconds+=m; return *this; }
|
||||||
|
|
||||||
|
friend time_point operator - ( const time_point_sec& t, const microseconds& m ) { return time_point(t) - m; }
|
||||||
|
friend microseconds operator - ( const time_point_sec& t, const time_point_sec& m ) { return time_point(t) - time_point(m); }
|
||||||
|
friend microseconds operator - ( const time_point& t, const time_point_sec& m ) { return time_point(t) - time_point(m); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint32_t utc_seconds;
|
uint32_t utc_seconds;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue