11 #ifndef __BENCHMARK_HEADER
12 #define __BENCHMARK_HEADER
21 uint16_t
const N =
n * clockCyclesPerMicrosecond();
24 for(uint16_t
i = 0;
i < N; ++
i)
28 double overhead =
e -
s;
29 overhead *= clockCyclesPerMicrosecond() / double(N);
33 for(uint16_t
i = 0;
i < N; ++
i)
38 res *= clockCyclesPerMicrosecond() / double(N);
71 #endif //__BENCHMARK_HEADER
#define GREEN
Definition: color.hpp:15
double benchmark_clocks(T fct, uint16_t const &n=100)
Definition: benchmark_report.hpp:20
#define YELLOWB
Definition: color.hpp:18
#define GREENB
Definition: color.hpp:16
void benchmark_report(T fct, uint16_t const &n=100)
Definition: benchmark_report.hpp:49
#define NONE
Definition: color.hpp:37
struct ustd::endl_class endl
#define F(x)
Definition: ustd_generic.hpp:15
double benchmark_micros(T fct, uint16_t const &n=100)
Definition: benchmark_report.hpp:44
#define YELLOW
Definition: color.hpp:17