Functions | Variables
psen_scan_utils Namespace Reference

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) }
 

Function Documentation

◆ adjustTimeout()

static std::chrono::steady_clock::duration psen_scan_utils::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 
)
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.

Variable Documentation

◆ DEFAULT_MAX_TIMEOUT

constexpr auto psen_scan_utils::DEFAULT_MAX_TIMEOUT { std::chrono::seconds(60) }

Definition at line 24 of file timeout_adjust_func.h.

◆ DEFAULT_TIMEOUT_INCREASE

constexpr auto psen_scan_utils::DEFAULT_TIMEOUT_INCREASE { std::chrono::seconds(10) }

Definition at line 23 of file timeout_adjust_func.h.



psen_scan
Author(s):
autogenerated on Mon Feb 28 2022 23:16:20