Bench: now using host timer rather than events

This commit is contained in:
Philippe Tillet
2015-12-17 01:37:42 -05:00
parent 722dae528c
commit f99293816c
2 changed files with 37 additions and 31 deletions

View File

@@ -2,6 +2,7 @@
#define ISAAC_BENCH_COMMON_HPP_
#include <chrono>
#include <algorithm>
template<std::size_t> struct int_{};
@@ -61,6 +62,12 @@ T median(std::vector<T> x)
return x[size / 2];
}
template<class T>
T min(std::vector<T> x)
{
return *std::min_element(x.begin(), x.end());
}
template<class T>
T mean(std::vector<T> x)
{