Public Member Functions |
|
void | reset () |
| | Member function reset resets the metric values to zero.
|
| MetricTraits< T >::Type | addLap () |
| | Member function addLap adds the most recently completed lap to the total.
|
|
void | checkpoint () const |
| | Member function checkpoint checkpoints the metrics by storing the total time in the checkpoint value.
|
| MetricTraits< T >::Type | getLap () const |
| | Member function getLap returns the value of the most recently lap.
|
| MetricTraits< T >::Type | getStart () const |
| | Member function getStart returns the start value of the most recent lap.
|
| MetricTraits< T >::Type | getStop () const |
| | Member function getStop returns the stop value of the most recent lap.
|
| MetricTraits< T >::Type | getAccumulatedLap (bool arg_checkpoint=false) const |
| | Member function getAccumulatedLap returns the accumulated value of the metric.
|
| Writer & | dump (Writer &dout) const |
| | Member function dump prints the value of the Metric to the diagnostic writer.
|
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.
|
template<typename T>
struct stk::diag::Timer::Metric< T >
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.
Definition at line 195 of file Timer.hpp.