Benchee v0.13.0 Benchee.Benchmark.Measure.Time View Source

Measure the time consumed by a executing function.

Link to this section Summary

Functions

Takes an anonymous 0 arity function to measure and returns the measurement and the return value of the function in a tuple

Link to this section Functions

Takes an anonymous 0 arity function to measure and returns the measurement and the return value of the function in a tuple.

The returned measurement may be nil if the measurement failed for some reason - it will then be ignored and not counted.

Callback implementation for Benchee.Benchmark.Measure.measure/1.