7#ifndef __MICRO_BENCHMARK_COMMON_H__
8#define __MICRO_BENCHMARK_COMMON_H__
void micro_benchmarkVecToMap(MapOrderedTime &mapOrderTime, const VecEllapsedTime &vecTime)
Fill the map of ordered time with the vector.
int micro_benchmarkParseArg(int argc, char **argv, EvaluateTimeFct evalFunc)
Call the evalFunc by respect to the arguments given to the program.
int micro_benchmarkParseArg2d(int argc, char **argv, EvaluateTimeFct2d evalFunc)
Call the evalFunc by respect to the arguments given to the program.
std::map< double, size_t > MapOrderedTime
Map of the ordered ellapsed time.
void micro_benchmarkComputeTime(double &ellapsedTimeNs, double &ellapsedTimeErrorNs, const MapOrderedTime &mapOrderTime, size_t nbValueToBeUsed)
Compute the total computing time and associated error with the given data.
double(& EvaluateTimeFct2d)(size_t, size_t)
std::vector< double > VecEllapsedTime
Vector of ellapsed time measurement.
void(& EvaluateTimeFct)(size_t)