# Timer not working

**URL:** <https://community.thunkable.com/t/timer-not-working/1585763>\
**Category:** Questions about Thunkable X\
**Tags:** solved, beginner, timer\
**Created:** [October 28, 2021, 7:36am UTC](https://community.thunkable.com/t/timer-not-working/1585763 "2021-10-28T07:36:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![flansoda](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/flansoda/32/118777_2.png) [@flansoda](https://community.thunkable.com/u/flansoda)\
**Post date:** [October 28, 2021, 7:36am UTC](https://community.thunkable.com/t/timer-not-working/1585763/1 "2021-10-28T07:36:42Z")

</div>

I have a label with the text set as “60” and I want it to decrease by 1 every second. I am having difficulty with the timer feature because it just won’t work with anything that I try.

---

<div class="post-metadata">

**Author:** ![jakeheron](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jakeheron/32/116818_2.png) [@jakeheron](https://community.thunkable.com/u/jakeheron)\
**Post date:** [October 28, 2021, 8:08am UTC](https://community.thunkable.com/t/timer-not-working/1585763/2 "2021-10-28T08:08:24Z")

</div>

Hi, there are lots of ways of doing this but this is what has worked for me just quickly messing around:  
 ![Screen Shot 2564-10-28 at 15.10.21](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/57caebfa6d22c6b9880c5ed67329bb8db2fd436f.png)

Here is a demo link:

[https://x.thunkable.com/copy/09d62c5a553a44b7b8e84d68e15c74f2](https://x.thunkable.com/copy/09d62c5a553a44b7b8e84d68e15c74f2)

Let me know if that works,

Thanks!

---

<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:** [October 28, 2021, 8:41am UTC](https://community.thunkable.com/t/timer-not-working/1585763/3 "2021-10-28T08:41:47Z")

</div>

> [@flansoda](#):
>
> it just won’t work with anything that I try.

Please **DO NOT** use the **Preview button** in the designer screen. Many functions do not work in that preview.

The `Timer` works fine. Show your blocks so other can see it and help you to code it in a better way.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [October 28, 2021, 6:00pm UTC](https://community.thunkable.com/t/timer-not-working/1585763/4 "2021-10-28T18:00:44Z")

</div>

> [@muneer](#):
>
> The `Timer` works fine. Show your blocks so other can see it and help you to code it in a better way.

These blocks work well. In your screenshot, you have the condition `repeat until app variable timer = 0` but in your project link, it’s set to `repeat while ≥ 0`. It needs to be `repeat while > 0` to work properly. Otherwise, when it gets to 0, it will run one more time and the length of the total time will be 62 seconds instead of 61.

Using the `seconds since 1970` block, I timed that loop and found that it takes 61.45 seconds in a browser. Seems pretty good but it’s not exactly 61 seconds.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/2/529a5767d1a0081e24dc3c586b6d837f7380d6aa.png)

---

<div class="post-metadata">

**Author:** ![flansoda](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/flansoda/32/118777_2.png) [@flansoda](https://community.thunkable.com/u/flansoda)\
**Post date:** [October 28, 2021, 11:41pm UTC](https://community.thunkable.com/t/timer-not-working/1585763/5 "2021-10-28T23:41:54Z")

</div>

Thank you, this worked for me

---

<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:14pm UTC](https://community.thunkable.com/t/timer-not-working/1585763/6 "2024-11-08T13:14:39Z")

</div>


