<div dir="ltr">Hi Marcel,<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 12:07 AM, marcel.taeumel <span dir="ltr">&lt;<a href="mailto:Marcel.Taeumel@hpi.de" target="_blank">Marcel.Taeumel@hpi.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi, there!<br>
<br>
The VM seems to &quot;cache&quot; the wall clock. This is weird.<br>
<br>
Here is the story: I just booted into Windows and my time was wrong. Seems<br>
to be come Surface bug. It still was at the sleep time yesterday evenening,<br>
11pm.<br>
<br>
Squeak was already open, reporting the same.<br>
<br>
Then, I updated the system time by letting Windows sync with Microsofts time<br>
server.<br>
<br>
And then, the still running Squeak VM reported still the old values!!! :-/<br>
How can that happen?<br></blockquote><div><br></div><div>By my having coded time management in the Windows VM wrong?  Look at sqWin32Heartbeat.c.</div><div>This all needs rewriting anyway given the discussion on monotonic vs wall time.   I&#39;d like to have one copy of the code that computes the VM&#39;s notion of time, perhaps written in Smalltalk, and place that above platform-specific code that answers the monotonic and wall clocks.</div><div><br></div><div>But what should the VM do if it is faced with a huge jump in the time?  Let&#39;s say that for testing you set the clock on your machine to 1970, then you started Smalltalk, and then you enabled syncing with the time server and the clock jumped forward to 2016.  One could have the VM try to compensate but I think the best thing is to say &quot;don&#39;t do that&quot; and require teh user to restart their image.  It&#39;s reasonable for the VM to maintain a clock that undergoes ntpd-like adjustments.  It&#39;s complicated to have the VM try and distinguish small ntpd-like adjustments form huge adjustments in the clock.  And keeping it simple seems like the best solution.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
&lt;<a href="http://forum.world.st/file/n4878340/bug-time.png" rel="noreferrer" target="_blank">http://forum.world.st/file/n4878340/bug-time.png</a>&gt;<br>
<br>
Best,<br>
Marcel<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://forum.world.st/trunk-thinks-its-tomorrow-tp4877735p4878340.html" rel="noreferrer" target="_blank">http://forum.world.st/trunk-thinks-its-tomorrow-tp4877735p4878340.html</a><br>
Sent from the Squeak - Dev mailing list archive at Nabble.com.<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>