static void WaitFor(const Duration &duration)
Wait for a certain duration on the virtual clock.
Duration waitUntil(const DateTime &dateTime) const
Wait and block until the given date/time is surpassed.
Clock to get date/time from a specific clock type or wait for certain durations or until certain date...
ClockType
Describes the type of clock.
Clock(ClockType clockType=ClockType::Virtual)
Constructs a new clock of given clock type (virtual by default).
void waitFor(const Duration &duration) const
Wait for a certain duration.
@ Virtual
Time given by time server if configured, realtime otherwise.
Represents a point in time.
static Duration WaitUntil(const DateTime &dateTime)
Wait and block until the given date/time is surpassed on the virtual clock.
static DateTime Now()
Current time on the virtual clock.
std::chrono::system_clock Clock
This file offers overloads of toIce() and fromIce() functions for STL container types.
DateTime now() const
Current date/time of the clock.