16#ifndef IOX_HOOFS_CXX_DEADLINETIMER_HPP
17#define IOX_HOOFS_CXX_DEADLINETIMER_HPP
19#include "iceoryx_hoofs/internal/units/duration.hpp"
20#include "iceoryx_hoofs/platform/signal.hpp"
62 void reset(const
iox::units::Duration timeToWait) noexcept;
69 static
iox::units::Duration getCurrentMonotonicTime() 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.
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...
building block to easily create free function for logging in a library context
Definition lockfree_queue.hpp:29