[squeak-dev] Re: Timing riddle

Andreas.Raab andreas.raab at gmx.de
Tue Dec 4 19:42:09 UTC 2012


Good catch! I took your examples and turned them into unit tests. 
After that I posted a fixed version of valueWithin:onTimeout: to the trunk
:-)

Cheers,
  - Andreas


Stéphane Rollandin wrote
> [
> 	[5 seconds asDelay wait]
> 		valueWithin: 2 seconds onTimeout: []
> ]
> durationToRun
> 
> --> 0:00:00:02.001
> so far so good
> 
> 
> [
> 	3 timesRepeat: [
> 		[5 seconds asDelay wait]
> 			valueWithin: 2 seconds onTimeout: []]
> ]
> durationToRun
> 
> --> 0:00:00:06.001
> seems ok
> 
> 
> [
> 	[
> 		[5 seconds asDelay wait]
> 			valueWithin: 2 seconds onTimeout: []
> 	]
> 	valueWithin: 3 seconds onTimeout: []
> ]
> durationToRun
> 
> --> 0:00:00:02.001
> alright
> 
> 
> BUT:
> 
> 
> [
> 	[
> 		3 timesRepeat: [
> 			[5 seconds asDelay wait]
> 				valueWithin: 2 seconds onTimeout: []]
> 	]
> 	valueWithin: 3 seconds onTimeout: []
> ]
> durationToRun
> 
> --> 0:00:00:05
> 
> ?
> 
> 
> Stef





--
View this message in context: http://forum.world.st/Timing-riddle-tp4657994p4658045.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.


More information about the Squeak-dev mailing list