Functions | |
static std::chrono::steady_clock::duration | adjustTimeout (const std::chrono::steady_clock::duration &timeout, const std::chrono::steady_clock::duration timeout_increase=DEFAULT_TIMEOUT_INCREASE, const std::chrono::steady_clock::duration max_timeout=DEFAULT_MAX_TIMEOUT) |
Increases the given timeout by the specified timeout increase. If the new timeout exceeds the max timeout, the returned timeout is equal to the specified maximum timeout. More... | |
Variables | |
constexpr auto | DEFAULT_MAX_TIMEOUT { std::chrono::seconds(60) } |
constexpr auto | DEFAULT_TIMEOUT_INCREASE { std::chrono::seconds(10) } |
|
static |
Increases the given timeout by the specified timeout increase. If the new timeout exceeds the max timeout, the returned timeout is equal to the specified maximum timeout.
Definition at line 31 of file timeout_adjust_func.h.
constexpr auto psen_scan_utils::DEFAULT_MAX_TIMEOUT { std::chrono::seconds(60) } |
Definition at line 24 of file timeout_adjust_func.h.
constexpr auto psen_scan_utils::DEFAULT_TIMEOUT_INCREASE { std::chrono::seconds(10) } |
Definition at line 23 of file timeout_adjust_func.h.