[erlang-questions] Get Erlang node uptime and way to test it is working
Tue Jun 20 09:21:06 CEST 2017
We are using "erlang:statistics(wall_clock)" to get the Erlang node up
time in millisecond.
It works fine till 49 days, but on 49th day it will role back to start
from 0 millisecond.
I need to know two things here, First of all, a different method for how
to test it, I don't want to wait for 49+ days to see it works or not.
Secondly, I need to know a method which gives proper up time even after
49+ days. How about following:
"(erlang:monotonic_time() - erlang:system_info(start_time)) div 1000000000"
If any one having more insight on this, please shed some light on these
Thanks and regards,
More information about the erlang-questions