In other languages

Help the wiki!

The Scratch Wiki is made by and for Scratchers. Do you want to contribute?

Learn more about joining as an editor!

See discussions in the Community Portal

Timer (value)

This article is about the value. For more information on the block that reports this value, see Timer (block).
An image of the timer on the project display.

The Timer is a feature in Scratch that will record how much time, in seconds, have passed since the last time a project was opened or the timer was reset.

The timer is extremely accurate and the value itself is not affected by lag.[citation needed]

Related Blocks

The two blocks related to the timer.
The timer is associated with two blocks, both found in the Sensing category:

How it works

The timer works in the following ways:

  • Continuously counts upwards by tenths of seconds
  • Cannot be paused or stopped (that would imply pausing or stopping the flow of time itself)
  • Shows seconds, not minutes or more — even when the current value is longer than sixty seconds
  • Resets only when a project is opened inside Scratch or by execution of the Reset Timer block
  • Continues even when its project stops running


when gf clicked
set [timer v] to [0]
    wait (0) secs
    change [timer v] by ((1) / (30))

This way is slightly less accurate than the timer, and can be affected by other scripts.[1]

Example Uses

The timer is commonly used in projects that require a clock of some sort, such as racing projects. Other uses include:


  • This page was last modified on 14 June 2017, at 15:50.