#include <yarp/os/NetworkClock.h>
Classes | |
class | Private |
Public Member Functions | |
NetworkClock () | |
virtual | ~NetworkClock () |
bool | open (const std::string &clockSourcePortName, std::string localPortName="") |
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). | |
Public Member Functions inherited from yarp::os::Clock | |
virtual | ~Clock () |
Destructor. | |
Definition at line 17 of file NetworkClock.h.
NetworkClock::NetworkClock | ( | ) |
Definition at line 135 of file NetworkClock.cpp.
|
virtual |
Definition at line 140 of file NetworkClock.cpp.
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 197 of file NetworkClock.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 221 of file NetworkClock.cpp.
|
overridevirtual |
Return the current time in seconds, relative to an arbitrary starting point.
Implements yarp::os::Clock.
Definition at line 189 of file NetworkClock.cpp.
Definition at line 146 of file NetworkClock.cpp.