Class SteadyClock

Inheritance Relationships

Base Type

Class Documentation

class SteadyClock : public mir::time::Clock

Public Functions

virtual Timestamp now() const override

The current time according to this clock.

virtual Duration min_wait_until(Timestamp t) const override

The minimum amount of real time we would have to wait for this clock to reach or surpass the specified timestamp.

For clocks that deal in real time (i.e., most production implementations), this will just be max(t - now(), 0). However, fake clocks may return different durations.