Bert, Yes! It is very useful, I like it. Kathleen
---- Original message ----
Date: Sat, 26 Jun 2010 18:16:24 +0200 From: Bert Freudenberg bert@freudenbergs.de Subject: [etoys-dev] Timers To: etoys-dev@squeakland.org
This is related to the discussion of non-accurate tick rates: http://tracker.squeakland.org/browse/SQ-708
There currently is no good way to measure real time in Etoys. The Clock object is only accurate to one second.
So I'm proposing to have a global timer, in seconds, but with milli-second resolution. There would be a tile for accessing it in the world's "playfield" category (actually any playfield / holder).
This would allow to do animations etc to proceed in real time, independent of the actual tick rate of a script.
I just posted a proposed implementation to the inbox (Etoys-bf.31). Also, find attached an example project.
Would that be generally useful?
- Bert -
TimerTest.001.pr (44k bytes) ________________ _______________________________________________ etoys-dev mailing list etoys-dev@squeakland.org http://lists.squeakland.org/mailman/listinfo/etoys-dev