Collaboration diagram for ConservativeTimer:

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

ConservativeTimer::ConservativeTimer ( const Clock::duration  max)
inlineexplicit

Definition at line 777 of file StoreMap.cc.

Member Function Documentation

◆ expired()

bool ConservativeTimer::expired ( )
inline

Definition at line 783 of file StoreMap.cc.

Referenced by Ipc::StoreMap::validateHit().

Member Data Documentation

◆ lastTime

Clock::time_point ConservativeTimer::lastTime
private

Definition at line 795 of file StoreMap.cc.

◆ maxTime

const Clock::time_point ConservativeTimer::maxTime
private

Definition at line 797 of file StoreMap.cc.

◆ startTime

Clock::time_point ConservativeTimer::startTime
private

Definition at line 793 of file StoreMap.cc.


The documentation for this class was generated from the following file:

 

Introduction

Documentation

Support

Miscellaneous