Commit 34a4705c authored by Dominik Charousset's avatar Dominik Charousset

Add convenience function to the test actor clock

parent 09c88f59
...@@ -49,6 +49,13 @@ public: ...@@ -49,6 +49,13 @@ public:
/// @returns The number of triggered timeouts. /// @returns The number of triggered timeouts.
size_t advance_time(duration_type x); size_t advance_time(duration_type x);
// -- properties -------------------------------------------------------------
/// @pre has_pending_timeout()
time_point next_timeout() const {
return actions.begin()->first;
}
// -- member variables ------------------------------------------------------- // -- member variables -------------------------------------------------------
time_point current_time; time_point current_time;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment