Mir
|
#include <steady_clock.h>
Public Member Functions | |
Timestamp | now () const override |
The current time according to this clock. More... | |
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. More... | |
![]() | |
virtual | ~Clock ()=default |
Additional Inherited Members | |
![]() | |
Clock ()=default | |
Clock (Clock const &)=delete | |
Clock & | operator= (Clock const &)=delete |
|
overridevirtual |
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.
Implements mir::time::Clock.
|
overridevirtual |
The current time according to this clock.
Implements mir::time::Clock.
Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015