[squeak-dev] Delay time question
Igor Stasenko
siguctua at gmail.com
Thu Feb 28 04:41:48 UTC 2008
2008/2/28 Robert F. Scheer <rfscheer at speakeasy.net>:
> I compared with Jon Hylands and discovered a big difference between my
> Ubuntu and his Windows results.
>
> Time millisecondsToRun: [10 timesRepeat: [(Delay forMilliseconds: 1000)
> wait]] 10015
>
> Time millisecondsToRun: [100 timesRepeat: [(Delay forMilliseconds: 100)
> wait]] 10015
>
> Time millisecondsToRun: [1000 timesRepeat: [(Delay forMilliseconds: 10)
> wait]] 13405
>
> Time millisecondsToRun: [10000 timesRepeat: [(Delay forMilliseconds: 1)
> wait]] 45728
>
> He did the third test and got something like 10250 instead of my 13405.
>
> Is this behavior well-known and understood or is there something wrong
> with my install?
>
> Thanks for any help. It's a big problem for my robot (and therefore me)
> at the moment.
>
With low numbers (like 1 ms) there is a big deviation in accuracy.
Also, keep in mind that different OSes having different minimal
measurable clock step.
> - Robert
>
>
>
--
Best regards,
Igor Stasenko AKA sig.
More information about the Squeak-dev
mailing list
|