[erlang-questions] Node uptime

Håkan Huss huss01@REDACTED
Tue Mar 16 14:09:51 CET 2010


Check out erlang:statistics(wall_clock).

/Håkan

On Tue, Mar 16, 2010 at 13:52, Mazen Harake
<mazen.harake@REDACTED> wrote:
> Hi,
>
> I have a quick question. What is the easiest way to get the uptime of a Node
> (basically the "runtime" of the VM") *without* having to start something
> myself on startup I.e. it should be a generic solution which can run when I
> simply start a shell in Windows.
>
> Processing logs etc is not a very good idea since they wrap and as
> mentioned, the need to start something myself is a bad idea.
>
> I noticed while poking around in the C code that the ERTS does keep time of
> when processes start (p->started.tv_sec). Would it be possible to add the
> functionality of getting this value through e.g. erlang:system_info(runtime)
> or similar in a future version of Erlang?
>
> Meanwhile... is there another way of doing it?
>
> Cheers.
>
> /Mazen
> ---------------------------------------------------
>
> ---------------------------------------------------
>
> WE'VE CHANGED NAMES!
>
> Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG
> SOLUTIONS LTD.
>
> www.erlang-solutions.com
>
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>


More information about the erlang-questions mailing list