16 #ifndef IOX_UTILS_CXX_DEADLINETIMER_HPP
17 #define IOX_UTILS_CXX_DEADLINETIMER_HPP
19 #include "iceoryx_utils/internal/units/duration.hpp"
20 #include "iceoryx_utils/platform/signal.hpp"
62 void reset(const
iox::units::Duration timeToWait) noexcept;
69 iox::units::Duration getCurrentMonotonicTime() const noexcept;
71 iox::units::Duration m_timeToWait;
72 iox::units::Duration m_endTime;
This offers the deadline timer functionality. It has user convenient methods to reset the timer [by d...
Definition: deadline_timer.hpp:44
bool hasExpired() const noexcept
Checks if the timer has expired compared to its absolute end time.
DeadlineTimer(const iox::units::Duration timeToWait) noexcept
Constructor.
const iox::units::Duration remainingTime() const noexcept
calculates the remaining time before the timer goes off
void reset() noexcept
reinitializes the ending time for the timer. The absolute end time is calculated by adding time to wa...
Definition: duration.hpp:77
building block to easily create free function for logging in a library context
Definition: lockfree_queue.hpp:28