Stopwatch v0.0.2 Stopwatch

Stopwatch is a library to measure elapsed time in your code.

It is useful for logging purposes, for example to monitor some business critial portion of your apps or the response time of external services.

Examples

iex> Stopwatch.Timer.start(:test)
...> :timer.sleep(10)
...> t = Stopwatch.Timer.stop(:test)
...> Stopwatch.Watch.total_time(t) >= 10
true