# Stopwatch not starting when page opens

**URL:** <https://community.thunkable.com/t/stopwatch-not-starting-when-page-opens/1050611>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, timer\
**Created:** [January 15, 2021, 4:11am UTC](https://community.thunkable.com/t/stopwatch-not-starting-when-page-opens/1050611 "2021-01-15T04:11:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sp72979rdrlbc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sp72979rdrlbc/32/94224_2.png) [@sp72979rdrlbc](https://community.thunkable.com/u/sp72979rdrlbc)\
**Post date:** [January 15, 2021, 4:11am UTC](https://community.thunkable.com/t/stopwatch-not-starting-when-page-opens/1050611/1 "2021-01-15T04:11:31Z")

</div>

I have this stopwatch that I want to start when a page opens, here’s how the code looks:

 ![Screenshot 2021-01-14 at 8.03.02 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/8/b8ec67efca6ef3bc36edf87125cfa954e47f9fdc.png)

What did I do wrong?

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [January 15, 2021, 5:48am UTC](https://community.thunkable.com/t/stopwatch-not-starting-when-page-opens/1050611/2 "2021-01-15T05:48:13Z")

</div>

maybe but try using set instead change  
like -  
initialize variable time to 0  
when stopwatch fires {  
set variable time to variable time + 1  
from label2 set Text to variable time  
}

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 15, 2021, 7:39am UTC](https://community.thunkable.com/t/stopwatch-not-starting-when-page-opens/1050611/3 "2021-01-15T07:39:55Z")

</div>

First, I assume you set the time intervals in the design screen. Then in the block screen you need to use start / stop not enable.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/7/d76d1ac20e9dbeb067e9b7fcf44743f34dbc5303.png)

This will make it run.

---

<div class="post-metadata">

**Author:** ![oreeldadln](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/oreeldadln/32/89185_2.png) [@oreeldadln](https://community.thunkable.com/u/oreeldadln)\
**Post date:** [January 15, 2021, 8:50am UTC](https://community.thunkable.com/t/stopwatch-not-starting-when-page-opens/1050611/4 "2021-01-15T08:50:32Z")

</div>

There is a known bug in the “when opens” component. Hope that thunkable will release a fix soon.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 15, 2021, 12:05pm UTC](https://community.thunkable.com/t/stopwatch-not-starting-when-page-opens/1050611/5 "2021-01-15T12:05:40Z")

</div>

Hey @sp72979rdrlbc - does your timer have to start automatically like this? (for example, could you use a button to start the timer?)

---

<div class="post-metadata">

**Author:** ![sp72979rdrlbc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sp72979rdrlbc/32/94224_2.png) [@sp72979rdrlbc](https://community.thunkable.com/u/sp72979rdrlbc)\
**Post date:** [January 15, 2021, 11:24pm UTC](https://community.thunkable.com/t/stopwatch-not-starting-when-page-opens/1050611/6 "2021-01-15T23:24:52Z")

</div>

I’d prefer it to but I think I can work around this problem by making it start when a button is clicked, thanks!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:30pm UTC](https://community.thunkable.com/t/stopwatch-not-starting-when-page-opens/1050611/7 "2024-11-08T13:30:44Z")

</div>


