<br><br><div class="gmail_quote">On Tue, May 3, 2011 at 7:10 PM, Levente Uzonyi <span dir="ltr">&lt;<a href="mailto:leves@elte.hu">leves@elte.hu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On Tue, 3 May 2011, Eliot Miranda wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Its because on linux &amp; mac the clock is derived from gettimeofday which is<br>
wall time but on Windows it is derived from timeGetTime which isn&#39;t. The problem is the lack of a high-resolution wall time on Windows. GetSystemTimeAsFileTime et al have something like 16 ms resolution whereas timeGetTime has 1ms resolution.<br>

</blockquote>
<br></div>
On vista the accuracy of GetLocalTime (which is a &quot;friend&quot; of<br>
GetSystemTimeAsFileTime) seems to be 1ms. </blockquote><div><br></div><div>Good.  Time to change.  I&#39;ll test this on XP soon.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
E.g.:<br>
<br>
s := Set new.<br>
[ s size &lt; 10 ] whileTrue: [ s add: Win32SystemTime localDateAndTime ].<br>
s sorted<br>
<br>
Output:<br>
 {2011-05-04T04:03:40.049+02:00 . 2011-05-04T04:03:40.05+02:00 . 2011-05-04T04:03:40.051+02:00 . 2011-05-04T04:03:40.052+02:00 . 2011-05-04T04:03:40.053+02:00 . 2011-05-04T04:03:40.054+02:00 . 2011-05-04T04:03:40.055+02:00 . 2011-05-04T04:03:40.056+02:00 . 2011-05-04T04:03:40.057+02:00 . 2011-05-04T04:03:40.058+02:00}<br>
<font color="#888888">
<br>
<br>
Levente<br>
</font></blockquote></div><br>