erlang time handling (in calendar.erl and erlang.erl)

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Mon Jan 31 17:16:51 CET 2005

On January 31 2005 11:28, Matthias Lang wrote:
> Solutions? It's probably too late to fix now() since there's a lot of
> code out there depending on various, mutually incompatible aspects of
> its behaviour. But if you don't have any old code to break, it's not
> too hard to disable the clock-fudging. It's in 
>    erts/emulator/beam/erl_time_sup.c

Or, one could do what's suggested in the ERTS release notes (erts-5.3.6):

"The '+c' switch has been added to disable time correction in the 
runtime system, this should be used on systems where one is certain 
no dramatic wall clock time changes will occur and the time correction 
algorithm is too costly (namely very fast Linux systems where loads 
of erlang:now() are executed). "


More information about the erlang-questions mailing list