# Is there a way to change the "Time in milliseconds" property in a timer with code?

**URL:** <https://community.thunkable.com/t/is-there-a-way-to-change-the-time-in-milliseconds-property-in-a-timer-with-code/1415874>\
**Category:** Questions about Thunkable X\
**Created:** [July 27, 2021, 4:00am UTC](https://community.thunkable.com/t/is-there-a-way-to-change-the-time-in-milliseconds-property-in-a-timer-with-code/1415874 "2021-07-27T04:00:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranokhuilc3c](https://avatars.discourse-cdn.com/v4/letter/r/e99b99/32.png) [@ranokhuilc3c](https://community.thunkable.com/u/ranokhuilc3c)\
**Post date:** [July 27, 2021, 4:00am UTC](https://community.thunkable.com/t/is-there-a-way-to-change-the-time-in-milliseconds-property-in-a-timer-with-code/1415874/1 "2021-07-27T04:00:52Z")

</div>

I wanted to make it so that if you press a button, you can add 2 seconds to the timer, but I can’t seem to edit the “Time in milliseconds” property with code. Can it be done? And if it can, how can I do it?

---

<div class="post-metadata">

**Author:** ![skulamester](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/skulamester/32/100480_2.png) [@skulamester](https://community.thunkable.com/u/skulamester)\
**Post date:** [July 27, 2021, 5:01am UTC](https://community.thunkable.com/t/is-there-a-way-to-change-the-time-in-milliseconds-property-in-a-timer-with-code/1415874/2 "2021-07-27T05:01:12Z")

</div>

What if you add more seconds using the + block in the math tab?

---

<div class="post-metadata">

**Author:** ![ranokhuilc3c](https://avatars.discourse-cdn.com/v4/letter/r/e99b99/32.png) [@ranokhuilc3c](https://community.thunkable.com/u/ranokhuilc3c)\
**Post date:** [July 27, 2021, 5:12am UTC](https://community.thunkable.com/t/is-there-a-way-to-change-the-time-in-milliseconds-property-in-a-timer-with-code/1415874/3 "2021-07-27T05:12:41Z")

</div>

I tried that, but it will just reset the timer…

---

<div class="post-metadata">

**Author:** ![skulamester](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/skulamester/32/100480_2.png) [@skulamester](https://community.thunkable.com/u/skulamester)\
**Post date:** [July 27, 2021, 6:14am UTC](https://community.thunkable.com/t/is-there-a-way-to-change-the-time-in-milliseconds-property-in-a-timer-with-code/1415874/4 "2021-07-27T06:14:29Z")

</div>

Could you show us how have you tried?

---

<div class="post-metadata">

**Author:** ![ranokhuilc3c](https://avatars.discourse-cdn.com/v4/letter/r/e99b99/32.png) [@ranokhuilc3c](https://community.thunkable.com/u/ranokhuilc3c)\
**Post date:** [July 27, 2021, 9:10am UTC](https://community.thunkable.com/t/is-there-a-way-to-change-the-time-in-milliseconds-property-in-a-timer-with-code/1415874/5 "2021-07-27T09:10:27Z")

</div>

I forgot to mention I still want to keep the interval millisecond the same.

---

<div class="post-metadata">

**Author:** ![Garry\_Lane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/garry_lane/32/58057_2.png) [@Garry\_Lane](https://community.thunkable.com/u/Garry_Lane)\
**Post date:** [July 31, 2021, 7:24am UTC](https://community.thunkable.com/t/is-there-a-way-to-change-the-time-in-milliseconds-property-in-a-timer-with-code/1415874/6 "2021-07-31T07:24:45Z")

</div>

If you are displaying the timer in a label then you could add it to the label and not the timer using the addition math component.  
 ![Timer Add](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/0/b0d5f0cddb79045fcb36c7b793fc5571c4f802c0.png)  
Hope this helps.

---

<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:17pm UTC](https://community.thunkable.com/t/is-there-a-way-to-change-the-time-in-milliseconds-property-in-a-timer-with-code/1415874/7 "2024-11-08T13:17:48Z")

</div>


