On Tuesday, 27 March 2018 at 08:41:41 UTC, bauss wrote:
Perhaps https://dlang.org/phobos/std_datetime_stopwatch.html#benchmark ?
That fulfils neither of my two requirements mentioned in above; it requires explicit iteration count given by the caller and no automatic printing of results.