[squeak-dev] Re: Date[And]Time fractional seconds printing
andreas.raab at gmx.de
Sun Aug 29 17:27:15 UTC 2010
On 8/29/2010 6:24 AM, David T. Lewis wrote:
> On Sat, Aug 28, 2010 at 06:50:19PM -0700, Andreas Raab wrote:
>> There is specific code that does it if you ask for the #now at the same
>> (0 to: 9) collect:[:i| DateAndTime now].
>> You referred to http://bugs.squeak.org/view.php?id=474 and it states
>> "[the code] preserves the logic so that
>> (DateAndTime now)<= (DateAndTime now) is always false.
> D'oh! Of course.
> Wow, you must be doing a *lot* of accesses to "DateAndTime now" in
> order to get results like this. Something approaching a thousand per
> second I should guess.
Err, no. Only a few calls to #now within the same millisecond (the above
example doesn't call it thousands of times, it calls it nine times, but
within the same millisecond value). Given that the time resolution on
Linux systems is generally very poor, that is not difficult at all.
More information about the Squeak-dev