Mantis Bugtracker

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 [^] (1,474 bytes) 04-04-08 20:45

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
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:
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.
Powered by Mantis Bugtracker