This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

Yehuda
Yehuda presents ...

2017/4/14

Stopwatch

2016/12/12

This is a simple stopwatch that I made which counts up in seconds (please report bugs, comments, questions, or complaints).

Originally uploaded at: http://www.greenfoot.org/scenarios/18448

19953 views / 33 in the last 7 days

2 votes | 0 in the last 7 days

Tags: mouse with-source timer stopwatch yehuda

open in greenfoot
Your browser is ignoring the <APPLET> tag.
YehudaYehuda

2020/1/5

For some reason the mouse operations (my Timer buttons) in the program work even when the scenario is paused. You just can't see the results until "Run" is clicked. But nothing actually happens besides for the mouse click recognition, no code is executed yet. If I press my "Stop" then "Pause" (underneath the window), then my "Start" and then wait a few seconds before clicking "Run", it doesn't skip the time that I waited, it continues from where it left off, which is good. But it's not supposed to continue counting at all until I click "Start" (after having clicked "Stop"). It even works with the reset button. Pressing "Pause" my "Reset" then "Run" puts the timer back to zero.

Want to leave a comment? You must first log in.

Who likes this?

JohnBis Nosson1459