However I'd like to print elapsed in milliseconds instead of seconds. Is that possible using a template?
(Plus I don't understand why unit prints "op" instead of "seconds".)
I would also be fine with an alternative solution. E.g. before I used the following to get the minimum time over all measurements.
// Get minimum of all epochs in ms
double minTime = 1000000;
for (auto r : bench.results())
if (r.minimum(ankerl::nanobench::Result::Measure::elapsed) < minTime)
minTime = r.minimum(ankerl::nanobench::Result::Measure::elapsed) * 1000.0;
However, I'd also like to selectively get the minimum time per name, for which I didn't find an intuitive solution yet. The upper one already feels a bit hacky since there is no example or documentation on this.
I'm using the following very simple template for CSV-output, which works fine (stripped down from the CSV-template that nanobench comes with).
However I'd like to print
elapsed
in milliseconds instead of seconds. Is that possible using a template?(Plus I don't understand why
unit
prints "op" instead of "seconds".)I would also be fine with an alternative solution. E.g. before I used the following to get the minimum time over all measurements.
However, I'd also like to selectively get the minimum time per name, for which I didn't find an intuitive solution yet. The upper one already feels a bit hacky since there is no example or documentation on this.
Thank you!