25 #ifndef TASKOLIB_TIMEOUT_TRIGGER_H_
26 #define TASKOLIB_TIMEOUT_TRIGGER_H_
Declaration of the Timeout class.
Evaluates when the clock is elapsed.
Definition: TimeoutTrigger.h:49
TimePoint reset()
Reset the timeout start time to the current time.
Definition: TimeoutTrigger.h:61
const Timeout get_timeout() const
Get the timeout duration.
Definition: TimeoutTrigger.h:68
Timeout timeout_
Timeout.
Definition: TimeoutTrigger.h:51
void set_timeout(Timeout timeout)
Set the timeout duration.
Definition: TimeoutTrigger.h:75
bool is_elapsed() const
Evaluates if a timeout elapsed.
Definition: TimeoutTrigger.h:92
TimePoint get_start_time() const
Get start time.
Definition: TimeoutTrigger.h:83
TimePoint start_
Starting clock time used to measure the elapsed time.
Definition: TimeoutTrigger.h:52
A type for storing a timeout duration.
Definition: Timeout.h:72
std::chrono::milliseconds Duration
Definition: Timeout.h:74
static constexpr Timeout infinity()
A constant to use for "infinite" timeout durations.
Definition: Timeout.h:124
Namespace task contains all Taskolib functions and classes.
Definition: CommChannel.h:33
std::chrono::time_point< Clock > TimePoint
Definition: time_types.h:34
Declaration of time-related types.