erlang:monotonic_time() is negative

Sergej Jurečko <[email protected]> Tue, 1 Sep 2015 14:20:31 +0200
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CAAbM2=b6p4+KfA_YoJDQXNors+qs6MF_Gz2tJC2onMfP6Qo+-Q@mail.gmail.com>
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