7#ifndef __MICRO_BENCHMARK_NS_H__
8#define __MICRO_BENCHMARK_NS_H__
16typedef std::chrono::time_point<std::chrono::steady_clock>
HiPeTime;
20template<
typename _Callable,
typename... _Args>
21void micro_benchmarkNs(
double & ellapsedTimeNs,
double & ellapsedTimeErrorNs,
size_t nbTestPerf,
size_t nbCallPerTest,
22 _Callable&& __f, _Args&&... __args);
24template<
typename _Callable,
typename... _Args>
25void micro_benchmarkAutoNs(
double & ellapsedTimeNs,
double & ellapsedTimeErrorNs, _Callable&& __f, _Args&&... __args);
28template<
typename _Callable,
typename... _Args>
30 double & timePerElement,
double & timeErrorPerElement,
size_t nbTestPerf,
size_t nbCallPerTest,
size_t nbElement,
31 _Callable&& __f, _Args&&... __args);
33template<
typename _Callable,
typename... _Args>
35 double & timePerElement,
double & timeErrorPerElement,
size_t nbElement,
36 _Callable&& __f, _Args&&... __args);
39template<
typename _Callable,
typename... _Args>
40void micro_benchmarkNsPrint(
const std::string & testName,
size_t nbTestPerf,
size_t nbCallPerTest,
size_t nbElement, _Callable&& __f, _Args&&... __args);
42template<
typename _Callable,
typename... _Args>
void micro_benchmarkNsPrint(const std::string &testName, size_t nbTestPerf, size_t nbCallPerTest, size_t nbElement, _Callable &&__f, _Args &&... __args)
Do the micro benchmarking of a given function and gives performance results in ns and print the resul...
void micro_benchmarkAutoNs(double &ellapsedTimeNs, double &ellapsedTimeErrorNs, _Callable &&__f, _Args &&... __args)
Do the micro benchmarking of a given function and gives performance results in ns.
std::chrono::nanoseconds NanoSecs
HiPeTime phoenix_getTime()
Get the current time.
void micro_benchmarkNs(double &ellapsedTimeNs, double &ellapsedTimeErrorNs, size_t nbTestPerf, size_t nbCallPerTest, _Callable &&__f, _Args &&... __args)
Do the micro benchmarking of a given function and gives performance results in ns.
std::chrono::time_point< std::chrono::steady_clock > HiPeTime
std::chrono::steady_clock HiPeClock
void micro_benchmarkAutoNsPrint(const std::string &testName, size_t nbElement, _Callable &&__f, _Args &&... __args)
Do the micro benchmarking of a given function and gives performance results in ns and print the resul...