Spidey v0.1.0 Spidey.Util View Source

Link to this section Summary

Functions

Simple diffing function to time short snippets of code using DateTime.utc_now/0.

Link to this section Functions

Simple diffing function to time short snippets of code using DateTime.utc_now/0.

Take into account that it's just to get ballpark numbers. The approach is inherently broken.

Example

iex> t0 = DateTime.utc_now() iex> t1 = DateTime.utc_now() iex> diff(t0, t1) 0.02