Skip to content

Commit f159bd5

Browse files
author
Daniel Kroening
committed
more time stopping functionality
1 parent 22a68fe commit f159bd5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/util/time_stopping.h

+12
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class time_periodt:public fine_timet
7272
{
7373
return time_periodt(t-other.t);
7474
}
75+
76+
friend class absolute_timet;
7577
};
7678

7779
class absolute_timet:public fine_timet
@@ -89,6 +91,16 @@ class absolute_timet:public fine_timet
8991
{
9092
return time_periodt(t-other.t);
9193
}
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+
}
92104
};
93105

94106
absolute_timet current_time();

0 commit comments

Comments
 (0)