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.
iex> t0 = DateTime.utc_now() iex> t1 = DateTime.utc_now() iex> diff(t0, t1) 0.02