#include <uhal/utilities/TimeIntervalStats.hpp>
Public Types | |
typedef boost::chrono::steady_clock | Clock_t |
Public Member Functions | |
TimeIntervalStats () | |
~TimeIntervalStats () | |
size_t | size () const |
const Clock_t::duration & | min () const |
const Clock_t::duration & | max () const |
Clock_t::duration | mean () const |
const std::queue< Clock_t::duration > & | getLatestMeasurements () const |
void | add (const Clock_t::time_point &aT1, const Clock_t::time_point &aT2) |
void | clear () |
Private Attributes | |
std::queue< Clock_t::duration > | mLatestMeasurements |
Clock_t::duration | mMin |
Clock_t::duration | mMax |
Clock_t::duration | mSum |
size_t | nMeasurements |
Definition at line 15 of file TimeIntervalStats.hpp.
typedef boost::chrono::steady_clock uhal::TimeIntervalStats::Clock_t |
Definition at line 17 of file TimeIntervalStats.hpp.
uhal::TimeIntervalStats::TimeIntervalStats | ( | ) |
Definition at line 15 of file TimeIntervalStats.cpp.
uhal::TimeIntervalStats::~TimeIntervalStats | ( | ) |
Definition at line 21 of file TimeIntervalStats.cpp.
void uhal::TimeIntervalStats::add | ( | const Clock_t::time_point & | aT1, |
const Clock_t::time_point & | aT2 | ||
) |
Definition at line 56 of file TimeIntervalStats.cpp.
References mLatestMeasurements, mMax, mMin, mSum, and nMeasurements.
void uhal::TimeIntervalStats::clear | ( | ) |
Definition at line 74 of file TimeIntervalStats.cpp.
References mLatestMeasurements, and nMeasurements.
const std::queue< TimeIntervalStats::Clock_t::duration > & uhal::TimeIntervalStats::getLatestMeasurements | ( | ) | const |
Definition at line 50 of file TimeIntervalStats.cpp.
References mLatestMeasurements.
Referenced by uhal::operator<<().
const TimeIntervalStats::Clock_t::duration & uhal::TimeIntervalStats::max | ( | ) | const |
Definition at line 38 of file TimeIntervalStats.cpp.
References mMax.
Referenced by uhal::operator<<().
TimeIntervalStats::Clock_t::duration uhal::TimeIntervalStats::mean | ( | ) | const |
Definition at line 44 of file TimeIntervalStats.cpp.
References mSum, and nMeasurements.
Referenced by uhal::operator<<().
const TimeIntervalStats::Clock_t::duration & uhal::TimeIntervalStats::min | ( | ) | const |
Definition at line 32 of file TimeIntervalStats.cpp.
References mMin.
Referenced by uhal::operator<<().
size_t uhal::TimeIntervalStats::size | ( | ) | const |
Definition at line 26 of file TimeIntervalStats.cpp.
References nMeasurements.
Referenced by uhal::operator<<().
|
private |
Definition at line 37 of file TimeIntervalStats.hpp.
Referenced by add(), clear(), and getLatestMeasurements().
|
private |
Definition at line 40 of file TimeIntervalStats.hpp.
|
private |
Definition at line 39 of file TimeIntervalStats.hpp.
|
private |
Definition at line 41 of file TimeIntervalStats.hpp.
|
private |