Utilex v0.1.0 Utilex View Source

Link to this section Summary

Functions

Records the time taken to execute the passed in function

Link to this section Functions

Records the time taken to execute the passed in function.

Optionally takes in a times argument which will run the function that number of times and return the average result.

iex> Util.time(fn() -> 1 + 1 end, 100)
5.32