I wonder why we have to create a conflict between the Cog and Squeak VMs at this point...  As I understand it primitiveMicrosecondClock has a different epoch (posix, 1970) which strikes me as unnecessary.  Can&#39;t we keep with 64-bit microseconds from the Squeak epoch?<div>
<br></div><div>best</div><div>Eliot<br><br><div class="gmail_quote">On Sat, Aug 14, 2010 at 2:56 PM,  <span dir="ltr">&lt;<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
David T. Lewis uploaded a new version of Kernel to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Kernel-dtl.476.mcz" target="_blank">http://source.squeak.org/trunk/Kernel-dtl.476.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Kernel-dtl.476<br>
Author: dtl<br>
Time: 14 August 2010, 5:55:49.082 pm<br>
UUID: ac94bcb6-d6bc-4863-b7a8-70d7f49b81e2<br>
Ancestors: Kernel-eem.475<br>
<br>
Add Time class&gt;&gt;primMicrosecondClock and Time class&gt;&gt;primUtcWithOffset for access to microsecond clock primitives available in newer Squeak VMs.<br>
<br>
primMicrosecondClock provides a system clock with nominal microsecond precision.<br>
<br>
primUtcWithOffset answers UTC time as microseconds since the Posix epoch and offset as seconds offset from GMT. The Squeak clock is traditionally implemented in terms of platform local time. Use of UTC time and offset is advantageous if time zones and daylight saving time offsets are to be considered.<br>

<br>
Example:<br>
{ Time primMillisecondClock .<br>
   Time primMicrosecondClock .<br>
   Time primUtcWithOffset } ==&gt; #(6932757 6932757830 #(1281815075538304 -14400))<br>
<br>
<br>
=============== Diff against Kernel-eem.475 ===============<br>
<br>
Item was added:<br>
+ ----- Method: Time class&gt;&gt;primMicrosecondClock (in category &#39;clock&#39;) -----<br>
+ primMicrosecondClock<br>
+       &quot;Answer the number of microseconds since the microsecond clock<br>
+       was last reset or rolled over. Answer zero if the primitive fails.&quot;<br>
+<br>
+       &lt;primitive: &#39;primitiveMicrosecondClock&#39;&gt;<br>
+       ^ 0!<br>
<br>
Item was added:<br>
+ ----- Method: Time class&gt;&gt;primUtcWithOffset (in category &#39;clock&#39;) -----<br>
+ primUtcWithOffset<br>
+       &quot;Answer an array with UTC microseconds since the Posix epoch and<br>
+       the current seconds offset from GMT in the local time zone.&quot;<br>
+<br>
+       &lt;primitive: &#39;primitiveUtcWithOffset&#39;&gt;<br>
+       ^ { 0 . 0 }!<br>
<br>
<br>
</blockquote></div><br></div>