The code says it all:
struct BenchmarkCompareCPUTime {
bool operator() (const BenchmarkRun& a, const BenchmarkRun& b) const {
return a.real_time_us < b.real_time_us;
}
};
Also, it would be slightly more elegant to use nth_element than sort.
Original issue reported on code.google.com by se...@google.com on 5 May 2011 at 11:23
Original issue reported on code.google.com by
se...@google.com
on 5 May 2011 at 11:23