76 return period ==
rhs.period && totalTime ==
rhs.totalTime && totalRunCount ==
rhs.totalRunCount && tolerance ==
rhs.tolerance;
118 std::mutex* mutex =
nullptr);
136 std::mutex* mutex = nullptr) :
150 std::mutex* mutex = nullptr) :
170 virtual bool start();
176 virtual bool isRunning();
178#ifndef DOXYGEN_SHOULD_SKIP_THIS
A mini-server for performing network communication in the background.
Timer(const yarp::os::TimerSettings &settings, bool(T::*callback)(const yarp::os::YarpTimerEvent &), T *object, bool newThread, std::mutex *mutex=nullptr)
Timer constructor.
Timer(const Timer &)=delete
std::function< bool(const yarp::os::YarpTimerEvent &)> TimerCallback
Timer operator=(const Timer &)=delete
Timer(const yarp::os::TimerSettings &settings, bool(T::*callback)(const yarp::os::YarpTimerEvent &) const, const T *object, bool newThread, std::mutex *mutex=nullptr)
const version.
An interface to the operating system, including Port based communication.
The main, catch-all namespace for YARP.
TimerSettings(double inPeriod, size_t count, double seconds, double inTollerance)
bool operator==(const TimerSettings &rhs) const
TimerSettings(double inPeriod, size_t count, double seconds)
TimerSettings(double inPeriod)
double lastReal
lastReal when the last callback actually happened
double lastExpected
lastExpected when the last callback actually happened
double currentReal
currentReal When the current callback is actually being called
double lastDuration
lastDuration Contains the duration of the last callback
unsigned int runCount
runCount the count of calls
double currentExpected
currentExpected this is when the current callback should have been called