bench

Benchmark the running of a function, and log the result to the debug buffer. *

void
bench
(
alias func
)
(
lazy string name
)

Parameters

func

The function to benchmark

name
Type: string

The name to print in the log

Meta