Anonymous | Login | 03-07-2021 09:39 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 | |||||||
Reporter | wiz | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | open | |||||||||
Status | new | Product Version | ||||||||||
Summary | 0007000: [Enh] A timer class to measure elapsed time. | |||||||||||
Description |
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.) |
|||||||||||
Additional Information |
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 |
![]() |
|||||||||||
|
There are no notes attached to this issue. |
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
35 total queries executed. 28 unique queries executed. |