|Anonymous | Login||12-09-2019 11:20 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details [ Jump to Notes ]||[ View Advanced ] [ Issue History ] [ Print ]|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0007000||[Squeak] Morphic||minor||N/A||04-04-08 20:44||04-04-08 20:59|
|Summary||0007000: [Enh] A timer class to measure elapsed time.|
Context: you want to know how long has elapsed between steps. The system can not reliably garantee timing since it may or may not do service tasks (like gc) between steps. Or you want to keep track of several times for different tasks.
Problem: No one has made a stop watch class yet.
Solution: A simple class ElapsedTimer that keeps a starting time as a ivar.
Two simple methods.
#timeElapsed (to reset and read the timer)
#timeElapsing (to read the timer without resetting.)
Currently we have timeToRun which is understood only by Blocks.
This is somewhat limiting and if you design objects by looking for useful ones in the real world you will see this resembles a StopWatch.
It seems to me very useful to be able to have as many instances as I want. And if I wanted to do an animation I would have an easier time of making it smooth by using the actual time between steps and the velocity rather than believing all steps are the same duration.
|Attached Files||ElapsedTimer.st [^] (1,474 bytes) 04-04-08 20:45|
|There are no notes attached to this issue.|
|04-04-08 20:44||wiz||New Issue|
|04-04-08 20:44||wiz||Status||new => assigned|
|04-04-08 20:44||wiz||Assigned To||=> KenCausey|
|04-04-08 20:45||wiz||File Added: ElapsedTimer.st|
|04-04-08 20:59||KenCausey||Assigned To||KenCausey =>|
|04-04-08 20:59||KenCausey||Status||assigned => new|
|04-04-08 20:59||KenCausey||Category||Any => Morphic|
| Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
35 total queries executed.|
28 unique queries executed.