Timer

Timer is a primitive in MicroWorlds. This will allow you to add another element to games and programs.

Open a new project and copy the following code.

 

 
   

to reflex
; resett, this resets the timer to zero

resett

question [How fast are you?]

text1, print timer / 10

end

 
Try this

Change the timer to thousands of a second.

Add the words second in the text box.

If the timer is > than 3 seconds announce Too Slow.

If the timer is < .1 than announce Super Speed