Besides, durationToRun has a bug when durationTime is bigger than 1s, calling Duration milliSeconds: durationTime . (Or Duration milliSeconds: has a bug, depending on your point of view) Ex: (In Squeak) Duration milliSeconds: 7666 prints as: 0:00:00:00.7666 (In Pharo) Duration milliSeconds: 7666 prints as: 0:00:00:07.7666
In both cases, A Duration with 0 seconds, and 7666000000 nanoseconds is created. Cheers, Henry Stéphane Ducasse skrev: > on mac > > 0:00:00:00.409 > > On Jun 12, 2009, at 11:43 AM, Gary Chambers wrote: > > >> Depends if the preference for "higher performance" is enabled too... >> >> For comparison (Windows VM, updated 10304cl image): >> >> "higher performance" off: 0:00:00:06.6087 >> "higher performance" on: 0:00:00:00.524 >> >> Regards, Gary >> >> ----- Original Message ----- >> From: "Stéphane Ducasse" <[email protected]> >> To: "Pharo Development" <[email protected]> >> Sent: Friday, June 12, 2009 7:12 AM >> Subject: [Pharo-project] Animation bench >> >> >> Hi guys >> >> could you run the following: >> >> >>>> [ >>>> (m := Morph new) openInWorld. >>>> 1 to: 300 do: [:i | >>>> m position: m position + (1...@1). >>>> World doOneCycle] >>>> ] >>>> durationToRun >>>> >> because [email protected] did it and here are the result >> >> * vm : pharo-vm-0.15.1b-linux >> * image : pharo0.1-10332dev09.06.2 >> - Test 1 : Project est vide, juste le workspace ouvert à l'opposé du >> trajet >> Résultat 0:00:00:07.704 >> - Test 2 : ClassBrowser recouvrant tout le 'World' >> Résultat : 0:00:00:00.689 >> >> - Test 1 >> * vm : squeak3.9.8-3ubuntu3 >> * image : Squeak-dev 3.10.2 >> - Test 1 : Project est vide, juste le workspace ouvert à l'opposé du >> trajet >> Résultat : 0:00:00:02.098 >> - Test 2 : ClassBrowser recouvrant tout le 'World' >> Résultat : 0:00:00:00.608 >> Donc contrairement à ce qu'il semblait être logique, >> le morph avance plus vite si le "World" n'est pas vide. >> >> Stéphane Rollandin a écrit : >> >>> [ >>> (m := Morph new) openInWorld. >>> 1 to: 300 do: [:i | >>> m position: m position + (1...@1). >>> World doOneCycle] >>> ] >>> durationToRun >>> >>> retourne 0:00:00:00.373 dans mon image, soit un gros tiers de >>> seconde. on est loin des 6 s >>> >> _______________________________________________ >> Pharo-project mailing list >> [email protected] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >> >> >> _______________________________________________ >> Pharo-project mailing list >> [email protected] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >> >> > > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
