stopwatch provides an easy api to measure elapsed time and profile code.
The package can be installed as:
-
Add stopwatch to your list of dependencies in
mix.exs
:def deps do [{:stopwatch, ">= 0.0.0"}] end
-
Ensure stopwatch is started before your application:
def application do [applications: [:stopwatch]] end