Sierra Toolkit
Version of the Day
|
#include <Timer.hpp>
Public Member Functions | |
void | reset () |
MetricTraits< T >::Type | addLap () |
void | checkpoint () const |
MetricTraits< T >::Type | getLap () const |
MetricTraits< T >::Type | getStart () const |
MetricTraits< T >::Type | getStop () const |
MetricTraits< T >::Type | getAccumulatedLap (bool arg_checkpoint=false) const |
Writer & | dump (Writer &dout) const |
Public Attributes | |
MetricTraits< T >::Type | m_lapStart |
Most recent start time/count. | |
MetricTraits< T >::Type | m_lapStop |
Most recent stop or lap time/count. | |
MetricTraits< T >::Type | m_accumulatedLap |
Accumulated time/count. | |
MetricTraits< T >::Type | m_checkpoint |
Checkpointed time/count. | |
Class Metric maintains the metric data for the timer or counter. The start and stop times maintain the current lap time. When a lap completes, its time/count is accumlated to the total. The total time/count can be stored in the checkpoint member variable. The total can be retrieved as either absolute time/count the diffence from the checkpoint value.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Member function getAccumulatedLap returns the accumulated value of the metric. If the checkpoint parameter if true, the value returned is the difference between the accumulated value and the checkpointed value.
checkpoint | a bool value of true of the checkpointed value is to be returned. |
template Writer & stk_classic::diag::Timer::Metric< T >::dump | ( | Writer & | dout | ) | const |