![Collaboration graph](classConservativeTimer__coll__graph.png)
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 More... | |
Private Attributes | |
Clock::time_point | startTime |
the object creation time More... | |
Clock::time_point | lastTime |
the time of the last expired() call, initially equals to startTime More... | |
const Clock::time_point | maxTime |
after going past this point in time, expired() becomes true More... | |
Detailed Description
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.
Member Typedef Documentation
◆ Clock
typedef std::chrono::high_resolution_clock ConservativeTimer::Clock |
Definition at line 775 of file StoreMap.cc.
Constructor & Destructor Documentation
◆ ConservativeTimer()
|
inlineexplicit |
Definition at line 777 of file StoreMap.cc.
Member Function Documentation
◆ expired()
|
inline |
Definition at line 783 of file StoreMap.cc.
Referenced by Ipc::StoreMap::validateHit().
Member Data Documentation
◆ lastTime
|
private |
Definition at line 795 of file StoreMap.cc.
◆ maxTime
|
private |
Definition at line 797 of file StoreMap.cc.
◆ startTime
|
private |
Definition at line 793 of file StoreMap.cc.
The documentation for this class was generated from the following file:
- src/ipc/StoreMap.cc
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products