#include <yarp/os/Clock.h>
Public Member Functions | |
virtual | ~Clock () |
Destructor. More... | |
virtual double | now ()=0 |
Return the current time in seconds, relative to an arbitrary starting point. More... | |
virtual void | delay (double seconds)=0 |
Wait for a certain number of seconds. More... | |
virtual bool | isValid () const =0 |
Check if time is valid (non-zero). More... | |
|
virtualdefault |
Destructor.
|
pure virtual |
Wait for a certain number of seconds.
This may be fractional.
seconds | the duration of the delay, in seconds |
Implemented in yarp::os::SystemClock, and yarp::os::NetworkClock.
|
pure virtual |
Check if time is valid (non-zero).
For example, for a network clock, if no timestamp has yet been received, this method will return false.
Implemented in yarp::os::SystemClock, and yarp::os::NetworkClock.
|
pure virtual |
Return the current time in seconds, relative to an arbitrary starting point.
Implemented in yarp::os::SystemClock, and yarp::os::NetworkClock.