<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Rickard Green,<br>
<br>
Thanks for your valuable reply and will consider your
suggestion of using erlang:convert_time_unit/3 instead of assuming
nanoseconds.<br>
<br>
Regards,<br>
Mithun B<br>
<br>
On Tuesday 20 June 2017 04:26 PM, Rickard Green wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAA_Z33NX1ZRria=sHvd3Bwp7w2Luc4YYB27G3Yct+MYnD5Ph4Q@mail.gmail.com">
<div><br>
<div class="gmail_quote">
<div dir="auto">tis 20 juni 2017 kl. 09:21 skrev Mithun B <<a
href="mailto:mithunb@utl.in" moz-do-not-send="true">mithunb@utl.in</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
We are using "erlang:statistics(wall_clock)" to get the
Erlang node up<br>
time in millisecond.<br>
<br>
It works fine till 49 days, but on 49th day it will role
back to start<br>
from 0 millisecond.<br>
<br>
I need to know two things here, First of all, a different
method for how<br>
to test it, I don't want to wait for 49+ days to see it
works or not.<br>
<br>
Secondly, I need to know a method which gives proper up time
even after<br>
49+ days. How about following:<br>
<br>
"(erlang:monotonic_time() - erlang:system_info(start_time))
div 1000000000"<br>
</blockquote>
<div dir="auto"><br>
</div>
<div dir="auto">Apart from the assumption of nanosecond native
time unit this is the way to do it. Use
erlang:convert_time_unit() instead. There are Erlang systems
not using nanoseconds as native time unit. </div>
<div dir="auto"><br>
</div>
<div dir="auto">Regards,</div>
<div dir="auto">Rickard Green, Erlang/OTP</div>
<div dir="auto"> </div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
If any one having more insight on this, please shed some
light on these<br>
topics.<br>
<br>
Thanks and regards,<br>
<br>
Mithun B<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank"
moz-do-not-send="true">erlang-questions@erlang.org</a><br>
<a
href="http://erlang.org/mailman/listinfo/erlang-questions"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote>
</div>
</div>
<div dir="ltr">-- <br>
</div>
<div data-smartmail="gmail_signature">Rickard Green, Erlang/OTP,
Ericsson AB</div>
</blockquote>
<p><br>
</p>
</body>
</html>