Changes to Trunk (
http://source.squeak.org/trunk.html) in the last 24 hours:
http://lists.squeakfoundation.org/pipermail/packages/2010-August/003596.htmlName: Kernel-dtl.476
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))
=============================================