16 gettimeofday(&tv, NULL);
17 return tv.tv_usec * 0.000001 + tv.tv_sec;
28 std::cout <<
"Benchmark" <<
"," <<
"count" <<
"," <<
"min" <<
"," <<
"max" <<
"," <<
"average" <<
"\n";
30 for (std::map<std::string,BenchFunction>::iterator it =
benchmarks.begin();
33 State state(it->first, elapsedTimeForOne);
static double gettimedouble(void)
boost::function< void(State &)> BenchFunction
static std::map< std::string, BenchFunction > benchmarks
static void RunAll(double elapsedTimeForOne=1.0)
BenchRunner(std::string name, BenchFunction func)