Util
Utilities that are useful across a range of elixir applications.
For example, do a quick benchmark to test the speed of a function:
$ iex
iex 1>func = fn -> 1 + 1 end
iex 2>Util.time(func, 10_000) # Execute `func` 10_000 times
1.32 # => Average time taken in MicrosecondsInstallation
Installation is pretty simple:
def deps do
[{:util, "~> 0.1.0", only: :dev}]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/util.