MongoDB  2.7.0
Public Member Functions | List of all members
mongo::ElapsedTracker Class Reference

Keep track of elapsed time. More...

#include <elapsed_tracker.h>

Public Member Functions

 ElapsedTracker (int32_t hitsBetweenMarks, int32_t msBetweenMarks)
 
bool intervalHasElapsed ()
 Call this for every iteration. More...
 
void resetLastTime ()
 

Detailed Description

Keep track of elapsed time.

After a set amount of time, tells you to do something.

Member Function Documentation

bool mongo::ElapsedTracker::intervalHasElapsed ( )

Call this for every iteration.

Returns
true if one of the triggers has gone off.

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