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 771 of file StoreMap.cc.

Member Typedef Documentation

◆ Clock

typedef std::chrono::high_resolution_clock ConservativeTimer::Clock

Definition at line 774 of file StoreMap.cc.

Constructor & Destructor Documentation

◆ ConservativeTimer()

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

Definition at line 776 of file StoreMap.cc.

Member Function Documentation

◆ expired()

bool ConservativeTimer::expired ( )
inline

Definition at line 782 of file StoreMap.cc.

References now.

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

Member Data Documentation

◆ lastTime

Clock::time_point ConservativeTimer::lastTime
private

Definition at line 794 of file StoreMap.cc.

◆ maxTime

const Clock::time_point ConservativeTimer::maxTime
private

Definition at line 796 of file StoreMap.cc.

◆ startTime

Clock::time_point ConservativeTimer::startTime
private

Definition at line 792 of file StoreMap.cc.


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors