Function
benchmark(end:benchmarkLog:)
Ends the given metric and adds it to the log.
func benchmark<E>(end metric: @autoclosure () -> E?, benchmarkLog log: Benchmark = .main) where E : BenchmarkBlockMetric
Parameters
metricThe metric to end and log.
logThe log to add the metric to.