Related in many ways: https://www.erlang.org/docs/22/apps/erts/time_correction
Also I still remember having fun with the "Determine the order of events by saving a tuple containing monotonic time and a strictly monotonically increasing integer as follows" part.