Measuring Latency and HTTP status with elixir

I’d rather use monotonic time if the code runs on a vm to avoid skews. And keep the measurements (request, parsing, etc) in the process dictionary (if needed).

But replace :os.timestamp() with :erlang.monotonic_time().

1 Like