44 lines
915 B
C++
44 lines
915 B
C++
/*
|
|
* File: StdDeviationStatistic.cc
|
|
* Author: jgaebler
|
|
*
|
|
* Created on June 22, 2011, 4:23 PM
|
|
*/
|
|
|
|
#include "StdDeviationStatistic.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Constructor
|
|
*/
|
|
StdDeviationStatistic::StdDeviationStatistic() {
|
|
}
|
|
|
|
/**
|
|
* @brief Constructor
|
|
* @param name The name of the value to record.
|
|
*/
|
|
StdDeviationStatistic::StdDeviationStatistic(const char * name) {
|
|
setName(name);
|
|
}
|
|
|
|
/**
|
|
* @brief Destructor
|
|
*/
|
|
StdDeviationStatistic::~StdDeviationStatistic() {
|
|
record();
|
|
}
|
|
|
|
/**
|
|
* @brief Collects a time value
|
|
* @param t The time to collect.
|
|
*/
|
|
void
|
|
StdDeviationStatistic::collect(const GenericTime & t) {
|
|
cStdDev::collect(t.dbl());
|
|
}
|
|
}
|
|
}
|