Taskolib
1.3.3
|
Evaluates when the clock is elapsed.
#include <TimeoutTrigger.h>
Public Member Functions | |
TimePoint | reset () |
Reset the timeout start time to the current time. More... | |
const Timeout | get_timeout () const |
Get the timeout duration. More... | |
void | set_timeout (Timeout timeout) |
Set the timeout duration. More... | |
TimePoint | get_start_time () const |
Get start time. More... | |
bool | is_elapsed () const |
Evaluates if a timeout elapsed. More... | |
Private Attributes | |
Timeout | timeout_ {Timeout::infinity()} |
Timeout. More... | |
TimePoint | start_ {} |
Starting clock time used to measure the elapsed time. More... | |
|
inline |
Get start time.
References start_.
Referenced by task::Sequence::get_time_of_last_execution().
|
inline |
Get the timeout duration.
References timeout_.
Referenced by task::Sequence::get_timeout().
|
inline |
Evaluates if a timeout elapsed.
References start_, and timeout_.
Referenced by task::Sequence::is_timeout_elapsed().
|
inline |
Reset the timeout start time to the current time.
The timeout duration remains unchanged.
References start_.
Referenced by task::Sequence::execute().
|
inline |
Set the timeout duration.
timeout | to be measure with the is_elapsed() member function. |
References timeout_.
|
private |
Starting clock time used to measure the elapsed time.
Referenced by get_start_time(), is_elapsed(), and reset().
|
private |
Referenced by get_timeout(), is_elapsed(), and set_timeout().