|
| operator bool () noexcept |
| Indicates if expired and if it is resets the timeout.
|
|
| timeout () noexcept |
| Default construction. Saves current time. Immediately expires. More...
|
|
| timeout (_clock::duration duration, _clock::duration initial) noexcept |
| Construction from the default and initial timeout duration. More...
|
|
| timeout (_clock::duration duration, nothing_t) noexcept |
| Construction from the default and zero initial timeout duration. More...
|
|
| timeout (_clock::duration duration) noexcept |
| Construction from the default duration. More...
|
|
template<typename R , typename P > |
| timeout (std::chrono::duration< R, P > duration) noexcept |
| Construction from the default duration. More...
|
|
| timeout () noexcept |
| Default construction. Saves current time. Immediately expires. More...
|
|
| timeout (_clock::duration duration, _clock::duration initial) noexcept |
| Construction from the default and initial timeout duration. More...
|
|
| timeout (_clock::duration duration, nothing_t) noexcept |
| Construction from the default and zero initial timeout duration. More...
|
|
| timeout (_clock::duration duration) noexcept |
| Construction from the default duration. More...
|
|
template<typename R , typename P > |
| timeout (std::chrono::duration< R, P > duration) noexcept |
| Construction from the default duration. More...
|
|
auto | reset () noexcept -> auto & |
| Resets the timeout using the previously specified duration.
|
|
auto | reset (_clock::duration duration, _clock::duration initial) noexcept -> auto & |
| Resets the timeout using the specified duration values.
|
|
auto | reset (_clock::duration duration, nothing_t) noexcept -> auto & |
| Resets the timeout using the specified duration values. More...
|
|
auto | reset (_clock::duration duration) noexcept -> auto & |
| Resets the timeout using the specified duration value. More...
|
|
auto | elapsed_time () const noexcept |
| Returns the time since reset as clocks duration type.
|
|
auto | is_expired () const noexcept -> bool |
| Indicates if the timeout is expired. More...
|
|
| operator bool () const noexcept |
| Indicates if the timeout is expired. More...
|
|
auto | period () const noexcept -> auto & |
| Returns the timeout period. More...
|
|
Specialization of timeout that resets when tested for expiration.
- See also
- timeout
-
time_measure