#include <yarp/os/Clock.h>
Public Member Functions | |
virtual | ~Clock () |
Destructor. | |
virtual double | now ()=0 |
Return the current time in seconds, relative to an arbitrary starting point. | |
virtual void | delay (double seconds)=0 |
Wait for a certain number of seconds. | |
virtual bool | isValid () const =0 |
Check if time is valid (non-zero). | |
|
virtualdefault |
Destructor.
Wait for a certain number of seconds.
This may be fractional.
seconds | the duration of the delay, in seconds |
Implemented in yarp::os::NetworkClock, and yarp::os::SystemClock.
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::NetworkClock, and yarp::os::SystemClock.
Return the current time in seconds, relative to an arbitrary starting point.
Implemented in yarp::os::NetworkClock, and yarp::os::SystemClock.