We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba96dde + f159bd5 commit 639d1aaCopy full SHA for 639d1aa
src/util/time_stopping.h
@@ -72,6 +72,8 @@ class time_periodt:public fine_timet
72
{
73
return time_periodt(t-other.t);
74
}
75
+
76
+ friend class absolute_timet;
77
};
78
79
class absolute_timet:public fine_timet
@@ -89,6 +91,16 @@ class absolute_timet:public fine_timet
89
91
90
92
93
94
95
+ absolute_timet operator+(const time_periodt &other)
96
+ {
97
+ return absolute_timet(t+other.t);
98
+ }
99
100
+ bool operator>=(const absolute_timet &other)
101
102
+ return t>=other.t;
103
104
105
106
absolute_timet current_time();
0 commit comments