Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
LedTimerMorph
Last updated at 5:07 pm UTC on 6 September 2005
I am a simple timer that displays the number of seconds in the same style as an LED.

To get started, use following command:

    LedTimerMorph new openInWorld; start.

This will create a new LedTimerMorph, display it, and then start the timer.

Structure:
 counting       boolean – Whether I am currently counting seconds or not
 startSeconds   numeric – The number of seconds representing the time when
                           I started counting.

I provide these messages #start, #stop, #pause, #resume, and #reset for standard
stop-watch controls.