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

Amy Lear octopusfluff@REDACTED
Tue May 24 22:08:54 CEST 2011


On Tue, May 24, 2011 at 12:09 PM, Jack Moffitt <jack@REDACTED> wrote:

> > The question is whether they are readily available. Sub-ms resolution
> timers
> > appear to be 'an exercise for the reader' for Windows developers, rather
> > than an OS-provided tool.
>
> QueryPerformanceCounter() is pretty readily available as far as I
> remember. Here's something Google brought up for implementing
> microsecond timers with it:
> http://www.decompile.com/cpp/faq/windows_timer_api.htm
>
> It's been a long time since I did Windows API stuff.
>

Thanks, that's very interesting. That could be used on a per-project basis
for some simple profiling, but is there any chance of the Erlang profiling
tools making use of this or something like this?

Ideally, one should be able to expect the same tools to function roughly the
same on each platform when they APPEAR to function and the requisite
infrastructure is present for them to perform equivalently.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110524/5e736e95/attachment.htm>


More information about the erlang-questions mailing list