Measure Elixir Code Time Execution

If we want to measure the execution time of some elixir code. We can use :timer.tc

{time, _result} = :timer.tc(fn -> fun() end) IO.puts("exec time in microsecond: #{time}")

Stay up to date

Sign up for the mailing list and get notified via email when new blog posts come out.