[erlang-questions] System timers, now/0, and instrumentation

Mike Oxford moxford@REDACTED
Wed May 25 18:49:35 CEST 2011


Write a port driver to a serial-based external timer.  Maybe an atomic
clock.

=P

-mox

On Wed, May 25, 2011 at 2:21 AM, Amy Lear <octopusfluff@REDACTED> wrote:

> 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.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110525/78c6dab4/attachment.htm>


More information about the erlang-questions mailing list