nanobench icon indicating copy to clipboard operation
nanobench copied to clipboard

Manual Timing

Open abduld opened this issue 3 years ago • 3 comments

Is there a mechanism (similar to google benchmark) to perform manual timing. I.e. not use the clock builtin to nanbench but provide our own iteration time to nanobench.

abduld avatar Sep 22 '20 22:09 abduld

No, currently that's not possible. On startup nanobench internally tunes itself to the accuracy of the std::chrono::steady_clock, and that wouldn't be easily possible with a customizable clock. Why do you think this is necessary?

martinus avatar Sep 23 '20 08:09 martinus

I'd like to benchmark some GPU code and that needs to use more accurate timers provided by the cuda / opencl apis

abduld avatar Sep 23 '20 18:09 abduld

Sorry currently I don't have much time to work on this. I'll keep the ticket open, but don't expect anything soon

martinus avatar Oct 08 '20 07:10 martinus