|
Squid Web Cache master
|
Public Types | |
| typedef std::chrono::high_resolution_clock | Clock |
Public Member Functions | |
| ConservativeTimer (const Clock::duration max) | |
| bool | expired () |
| whether the current time reached the provided maximum time | |
Private Attributes | |
| Clock::time_point | startTime |
| the object creation time | |
| Clock::time_point | lastTime |
| the time of the last expired() call, initially equals to startTime | |
| const Clock::time_point | maxTime |
| after going past this point in time, expired() becomes true | |
Checks whether the object lifetime has exceeded the specified maximum. The lifetime is considered to exceed the maximum if the time goes backwards. Uses the highest precision provided by the C++ implementation.
Definition at line 772 of file StoreMap.cc.
| typedef std::chrono::high_resolution_clock ConservativeTimer::Clock |
Definition at line 775 of file StoreMap.cc.
|
inlineexplicit |
Definition at line 777 of file StoreMap.cc.
|
inline |
Definition at line 783 of file StoreMap.cc.
Referenced by Ipc::StoreMap::validateHit().
|
private |
Definition at line 795 of file StoreMap.cc.
|
private |
Definition at line 797 of file StoreMap.cc.
|
private |
Definition at line 793 of file StoreMap.cc.