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()
.
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()
.