#include <yarp/os/SystemClock.h>
Public Member Functions | |
double | now () override |
Return the current time in seconds, relative to an arbitrary starting point. | |
void | delay (double seconds) override |
Wait for a certain number of seconds. | |
bool | isValid () const override |
Check if time is valid (non-zero). | |
![]() | |
virtual | ~Clock () |
Destructor. | |
Static Public Member Functions | |
static double | nowSystem () |
static void | delaySystem (double seconds) |
Definition at line 13 of file SystemClock.h.
Wait for a certain number of seconds.
This may be fractional.
seconds | the duration of the delay, in seconds |
Implements yarp::os::Clock.
Definition at line 19 of file SystemClock.cpp.
Definition at line 29 of file SystemClock.cpp.
|
overridevirtual |
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.
Implements yarp::os::Clock.
Definition at line 24 of file SystemClock.cpp.
|
overridevirtual |
Return the current time in seconds, relative to an arbitrary starting point.
Implements yarp::os::Clock.
Definition at line 14 of file SystemClock.cpp.
|
static |
Definition at line 34 of file SystemClock.cpp.