[squeak-dev] The Trunk: Kernel-dtl.476.mcz
Eliot Miranda
eliot.miranda at gmail.com
Sun Aug 15 00:36:06 UTC 2010
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't we keep with
64-bit microseconds from the Squeak epoch?
best
Eliot
On Sat, Aug 14, 2010 at 2:56 PM, <commits at source.squeak.org> wrote:
> David T. Lewis uploaded a new version of Kernel to project The Trunk:
> http://source.squeak.org/trunk/Kernel-dtl.476.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-dtl.476
> Author: dtl
> Time: 14 August 2010, 5:55:49.082 pm
> UUID: ac94bcb6-d6bc-4863-b7a8-70d7f49b81e2
> Ancestors: Kernel-eem.475
>
> Add Time class>>primMicrosecondClock and Time class>>primUtcWithOffset for
> access to microsecond clock primitives available in newer Squeak VMs.
>
> primMicrosecondClock provides a system clock with nominal microsecond
> precision.
>
> 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.
>
> Example:
> { Time primMillisecondClock .
> Time primMicrosecondClock .
> Time primUtcWithOffset } ==> #(6932757 6932757830 #(1281815075538304
> -14400))
>
>
> =============== Diff against Kernel-eem.475 ===============
>
> Item was added:
> + ----- Method: Time class>>primMicrosecondClock (in category 'clock')
> -----
> + primMicrosecondClock
> + "Answer the number of microseconds since the microsecond clock
> + was last reset or rolled over. Answer zero if the primitive fails."
> +
> + <primitive: 'primitiveMicrosecondClock'>
> + ^ 0!
>
> Item was added:
> + ----- Method: Time class>>primUtcWithOffset (in category 'clock') -----
> + primUtcWithOffset
> + "Answer an array with UTC microseconds since the Posix epoch and
> + the current seconds offset from GMT in the local time zone."
> +
> + <primitive: 'primitiveUtcWithOffset'>
> + ^ { 0 . 0 }!
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100814/9d8d26c4/attachment.htm
More information about the Squeak-dev
mailing list
|