Bench: now using host timer rather than events
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user