MCPcopy Create free account
hub / github.com/3rdparty/libprocess / remaining

Method remaining

include/process/timeout.hpp:83–87  ·  view source on GitHub ↗

Returns the amount of time remaining.

Source from the content-addressed store, hash-verified

81
82 // Returns the amount of time remaining.
83 Duration remaining() const
84 {
85 Duration remaining = timeout - Clock::now();
86 return remaining > Duration::zero() ? remaining : Duration::zero();
87 }
88
89 // Returns true if the timeout expired.
90 bool expired() const

Callers 3

acquireMethod · 0.45
_acquireMethod · 0.45
revertMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected