[erlang-questions] System timers, now/0, and instrumentation
Amy Lear
octopusfluff@REDACTED
Wed May 25 11:21:40 CEST 2011
On Wed, May 25, 2011 at 2:07 AM, Raimo Niskanen
<raimo+erlang-questions@REDACTED> wrote:
> The reason the provided profiling tools rely on now/0 is mostly
> that it has been around as long as they, plus the fact that
> now/0 never moves backwards, mostly moves forwards kind
> of sanely and is fairly lightweight makes it a nice but possibly
> somewhat inaccurate compromise for a generic profiling tool.
This makes sense.
> No. There is currenly nothing better built in than erlang:now/0 and
> os:timestamp/0. They could probably be improved on Windows but it
> was quite a while since we had anyone requiring (as in providing
> resources) us developing Erlang for Windows.
>
> Side note: timer:tc/2,3 is about / has been converted to use
> os:timestamp/0 instead.
Okay, good to know. I'm continuing to look into it from my end, and
maybe I'll find something that could be usable to other people.
Thanks for your time and attention.
More information about the erlang-questions
mailing list