42 std::vector<std::pair<std::string, std::chrono::system_clock::time_point>>
running;
63 template<const
size_t log_length,
typename datatype=
float>
66 static const size_t MASK = (1 << log_length) - 1;
72 inline datatype
update(datatype newSample) {
Computes moving average over a given number of samples.
datatype operator()() const
datatype samples[1<< log_length]
datatype update(datatype newSample)
Collects running time statistics of multiple tracks.
std::map< std::string, Track > tracks
void operator()(const std::string &track)
void report(std::ostream &, ReportType type=ReportType::FULL) const
std::vector< std::pair< std::string, std::chrono::system_clock::time_point > > running