7#ifndef ETISS_BENCHMARK_H
8#define ETISS_BENCHMARK_H
26double averageTime(
const std::list<std::pair<double, double>> &vals);
29template <
typename clock_ = Default_Clock>
40 throw "benchmark not stopped before calling start";
45 void stop(
size_t interval_count = 1)
49 throw "benchmark not started before calling start";
65 std::pair<double, double>
cur;
general configuration and logging
void stop(size_t interval_count=1)
Benchmark(const std::string &name)
std::list< std::pair< double, double > > interval_ns
std::pair< double, double > cur
std::string toString() const
Marker interface for toString() support.
double averageTime(const std::list< std::pair< double, double > > &vals)