Using the Timer
-
Prerequisite
Description
In the sensing category, there is a reporter block for “timer”, and 3 stack blocks for working with timers: “Reset Timer”, “Pause Timer” and “Resume Timer”.
The “Timer” Block
The “timer” block tells us how much time, in “seconds”, has passed since the timer was reset. Note that when you click the green flag button, the timer is reset to 0 as well.
This block shows the value of time on stage when you check the checkbox to its left.
Note: The value of time is shown in seconds (as opposed to minutes), even if it is more than 60 seconds.
For example, means the timer value is 91 seconds and 378 milliseconds.
The “Reset Timer” Block
This block resets the timer value to zero. That is, whenever you click the “reset timer” block, the timer starts counting from zero again.
“Pause Timer” and “Resume Timer”
The “pause timer” block freezes the timer to its current value, so the timer value will not go up anymore.
The “resume timer” block resumes the timer, so that it will continue to count time from its current value.