[ENH] relinquishProcessorForMicroseconds:

Ian Piumarta ian.piumarta at inria.fr
Tue May 7 11:10:32 UTC 2002


John,

> Now take this code
> 
> |bag  time delay |
> delay _ Delay forMilliseconds: 1.
> bag _ Bag new.
> 1 to: 1000 do: [:i |
> 	time _ Time millisecondClockValue.
> 	delay wait.
> 	bag add: (Time millisecondClockValue - time).
> ].
> bag sortedCounts.

NetBSD ppc:
 a SortedCollection(950->20 19->19 19->21 3->18 3->22 2->30 1->25 1->8
1->10 1->14)

Linux 386:
 a SortedCollection(294->1 213->2 146->3 100->4 84->5 55->6 33->7 33->8
11->10 9->11 8->9 6->13 5->12 1->14 1->17 1->18)

Ian





More information about the Squeak-dev mailing list