[Pkg] The Trunk: Kernel-dtl.476.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Aug 14 21:57:19 UTC 2010

David T. Lewis uploaded a new version of Kernel to project The Trunk:

==================== 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.

{ 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 }!

More information about the Packages mailing list