timer — Scratch Block Guide
High-precision stopwatch in seconds that starts automatically when the project opens.
What this block does
High-precision stopwatch in seconds that starts automatically when the project opens.
Measure race lap times, speedrun splits, and frame-rate-independent countdowns.
- Category: Sensing Blocks
- Key tip: The timer keeps ticking even after clicking the red Stop sign—always call "reset timer" at start.
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- When green flag clicked
- Reset timer
- Wait until (timer) 10>
- Say 10 seconds passed!
Try it: Tracks exact real-world seconds even if the game lags slightly.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "timer" in Scratch?
Measure race lap times, speedrun splits, and frame-rate-independent countdowns. The timer keeps ticking even after clicking the red Stop sign—always call "reset timer" at start.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.