Re: erlang:monotonic_time() is negative

Joe Armstrong <[email protected]> Tue, 1 Sep 2015 15:35:01 +0200
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CAANBt-qoLmEMpXiYZVn8pWmSPTic6KV+U7pNa79ys18qB7K4YQ@mail.gmail.com>
Wow - we've invented a time machine - what stocks are going up tomorrow?

/Joe

On Tue, Sep 1, 2015 at 2:20 PM, Sergej Jurečko <[email protected]> wrote:
> hello,
>
> Using 18.0.3 on OS X 10.10.5. I even tried rebooting the machine to check if
> the time turns negative after a while, but it seems it is always negative.
>
> erlang:monotonic_time().
> -576460736152226213
>
> Other timing calls:
>
> erlang:system_info(time_correction).
> true
>
> erlang:system_info(os_monotonic_time_source).
> [{function,clock_get_time},
>  {clock_id,'SYSTEM_CLOCK'},
>  {resolution,10000000},
>  {extended,no},
>  {parallel,yes},
>  {time,593734054849752}]
>
> erlang:system_time().
> 1441101200986915220
>
> erlang:unique_integer().
> -576460752303423486
>
> erlang:system_info(os_system_time_source).
> [{function,clock_get_time},
>  {clock_id,'CALENDAR_CLOCK'},
>  {resolution,10000000},
>  {parallel,yes},
>  {time,1441101320775081000}]
>
> Sergej
>
> _______________________________________________
> erlang-bugs mailing list
> [email protected]
> http://erlang.org/mailman/listinfo/erlang-bugs
>
_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs