erlang:system_time() bug

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

erlang:system_time() bug

Serge Aleynikov-3
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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: erlang:system_time() bug

Rickard Green-2
On Sat, Nov 14, 2015 at 9:28 PM, Serge Aleynikov <[hidden email]> 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
> [hidden email]
> 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
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions