Mir
Public Member Functions | List of all members
mir::time::SteadyClock Class Reference

#include <steady_clock.h>

Inheritance diagram for mir::time::SteadyClock:
[legend]

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...
 
- Public Member Functions inherited from mir::time::Clock
virtual ~Clock ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from mir::time::Clock
 Clock ()=default
 
 Clock (Clock const &)=delete
 
Clockoperator= (Clock const &)=delete
 

Member Function Documentation

mir::time::Duration mir::time::SteadyClock::min_wait_until ( Timestamp  t) const
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.

mir::time::Timestamp mir::time::SteadyClock::now ( ) const
overridevirtual

The current time according to this clock.

Implements mir::time::Clock.


The documentation for this class was generated from the following files:

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015