> For the complete documentation index, see [llms.txt](https://sketchwaredocs.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sketchwaredocs.gitbook.io/home/components/timer.md).

# Timer

The timer component is used to delay after the specified amount of time in milliseconds.

## Basic Example

After 100 milliseconds, run the code inside the block (in this case, there is nothing inside) using the specified timer component (in this case, called TimerName).

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG-zyY1tPt_7A_raOf7%2F-MG0-qWCfAEPMEAtqpcx%2Fimage.png?alt=media&amp;token=c74ad57b-8fc7-485e-9018-e9baf0bc3f7b" alt="Runs the blocks inside after 100 ms."></div>

## Blocks

#### After specified milliseconds:

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG00IyGoAk-9XqIpq44%2F-MG03Ax5WivyR2mP5-UE%2Fimage.png?alt=media&amp;token=9f0905a0-a577-4be9-a23d-06a7bfd29ff7" alt=""></div>

After the sepcifed time in ms, run the blocks inside this block.

#### After specified time in milliseconds, for every specified milliseconds after:&#x20;

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG00IyGoAk-9XqIpq44%2F-MG02fAzNOg8XmYWVVyb%2Fimage.png?alt=media&amp;token=86811d49-6682-429d-a9bf-8dd9d9738606" alt="After the sepcified time in ms, for every specified time in ms that passes, run the blocks inside this block."></div>

#### Cancel

<div align="left"><img src="https://1589143646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3AlXnP5kHENnvBXdKq%2F-MG03L1XfoPiVCBTom9_%2F-MG03oPcIUOMY8VqcQgE%2Fimage.png?alt=media&amp;token=9201e58a-d192-42a8-a219-536949ea769d" alt="Cancel the sepcified timer."></div>

{% hint style="warning" %}
The timer component may not cancel if used multiple times.&#x20;
{% endhint %}
