Go to the documentation of this file.
31 cycleDuration(cycleDuration), forceSystemTime(forceSystemTime), busyWaitShare(0.0
F)
37 cycleDuration(
IceUtil::
Time::milliSeconds(cycleDurationMs)),
38 forceSystemTime(forceSystemTime)
56 const auto waitTime = IceUtil::Time::microSeconds(
58 const double waitTimeDouble = waitTime.toMicroSecondsDouble() -
141 clock_gettime(CLOCK_MONOTONIC, &ts);
142 return IceUtil::Time::microSeconds(ts.tv_sec * 1e6 + ts.tv_nsec / 1000);
std::int64_t getCycleCount() const
Count of how many cycles were executed, i.e.
IceUtil::Time getMinimumDuration() const
IceUtil::Time getLastCycleTime() const
Time when the last cycle finished or start time.
IceUtil::Time cycleMaxDuration
void setBusyWaitShare(float value)
IceUtil::Time getMaximumDuration() const
IceUtil::Time cycleDuration
float getBusyWaitShare() const
IceUtil::Time getAverageDuration() const
IceUtil::Time lastCycleTime
std::shared_ptr< Value > value()
void reset()
resets startTime, lastCycleTime and cycleCount.
IceUtil::Time waitForCycleDuration()
This function will wait (virtual or system time) until the cycle time is reached.
IceUtil::Time cycleMinDuration
static void Sleep(IceUtil::Time duration)
lock the calling thread for a given duration (like usleep(...) but using Timeserver time)
armarx::core::time::DateTime Time
IceUtil::Time getStartTime() const
Time when object was constructed or reset was last called.
CycleUtil(const IceUtil::Time &cycleDuration, bool forceSystemTime=false)
static IceUtil::Time now()
This file offers overloads of toIce() and fromIce() functions for STL container types.