[erlang-questions] Time Granularity on Windows

Rob A'Court <>
Fri Jan 29 14:32:33 CET 2016

Ok, fine. Thank you!

We’ve done a bit more research and it looks like it is possible to get better granularity on Windows, but only by making a windows kernel call:

From: Lukas Larsson [mailto:]
Sent: 29 January 2016 10:33
To: Rob A'Court <>
Subject: Re: [erlang-questions] Time Granularity on Windows


On Fri, Jan 29, 2016 at 11:17 AM, Rob A'Court <<mailto:>> wrote:

Is this a problem with something I am doing or with the granularity of the windows system clock?

It is a problem with the granularity of the monotonic time source on Windows.

Is there another approach I could take to get accurate (~microsecond granularity) timestamps on windows and linux?

Maybe try os:timestamp on windows? I can't remember what it falls back onto, but as it does not have any monoticity guarantees it may give better values.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160129/e30519f3/attachment.html>

More information about the erlang-questions mailing list