[erlang-questions] erlang:system_time() bug

Rickard Green rickard@REDACTED
Mon Nov 16 16:35:29 CET 2015


On Sat, Nov 14, 2015 at 9:28 PM, Serge Aleynikov <serge@REDACTED> wrote:
> We noticed that erlang:system_time() returns unexpected results on Windows
> (v10 and v7 were tested, while working correctly on Linux:
>
> Windows:
> 1> erlang:system_time().
> 1482272700485632
> 2> erlang:now().
> {1447,531971,381000}
>
> Linux:
> 1> erlang:now().
> {1447,531817,353669}
> 2> erlang:system_time().
> 1447531823437962212
>
> Note the megaseconds part of the system_time/0 call on Windows is 148...
> whereas it should be 144...
>
> While the bug report was added to bugs.erlang.org, I am wondering if this is
> a known issue or there's some tweaking related to new time management
> functions that needs to be done on Windows?
>
> Serge
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>

This is not a bug. For more info see <http://bugs.erlang.org/browse/ERL-46>.

Regards,
Rickard
-- 
Rickard Green, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list