Utilility class to quickly determine how long certain operations take.
Utilility class to quickly determine how long certain operations take.
Example:
val i = calculate(something)
becomes
val i = benchmark(calculate(something))
Available to call statically (Benchmark.benchmark) or as a mixin trait, for convenience.
Utilility class to quickly determine how long certain operations take. Example: val i = calculate(something) becomes val i = benchmark(calculate(something))
Available to call statically (Benchmark.benchmark) or as a mixin trait, for convenience.