[erlang-questions] System timers, now/0, and instrumentation
Amy Lear
octopusfluff@REDACTED
Tue May 24 20:59:54 CEST 2011
On Tue, May 24, 2011 at 11:53 AM, Jack Moffitt <jack@REDACTED> wrote:
> > Breaks compatibility (backwards and cross platform.)
>
> I'm not talking about changing the semantics, just the implementation.
> If anything, it's currently incompatible across platform according to
> the original poster. I understand it may break Windows compatibility
> with older Erlangs, but making it work correctly on the platform seems
> like it would be a good goal. In other words, it sounds to me that it
> is simply a bug that the Windows Erlang doesn't use high resolution
> timers on the platform when they are readily available.
>
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.
I would agree that since I did my testing on this between a Windows machine
and a Mac, cross-platform compatibility is a bit of a question mark here. I
currently don't have a Linux install available to me; I presume it provides
now/0 resolution in the microsecond range as well?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110524/50be83bc/attachment.htm>
More information about the erlang-questions
mailing list