# How do I connect a timer across screens and show the time?

**URL:** https://community.thunkable.com/t/how-do-i-connect-a-timer-across-screens-and-show-the-time/3656013
**Category:** Questions about Thunkable X
**Tags:** help
**Created:** [March 14, 2025, 9:39am UTC](https://community.thunkable.com/t/how-do-i-connect-a-timer-across-screens-and-show-the-time/3656013 "2025-03-14T09:39:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![231006782bspdt](https://avatars.discourse-cdn.com/v4/letter/2/bcef8e/32.png) [@231006782bspdt](https://community.thunkable.com/u/231006782bspdt)
#### Post date: [March 14, 2025, 9:39am UTC](https://community.thunkable.com/t/how-do-i-connect-a-timer-across-screens-and-show-the-time/3656013/1 "2025-03-14T09:39:03Z")

</div>

Hi! I’m trying to make a step tracker where when you press the start button on the 2nd screen, a timer fires but you only see the time elapsed in the 3rd screen (stats)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/c/0c4dc083a0076fba8b62e767232af85286f121b2.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/9/e95cb5b5beff3c7aec9f5b217141dc8b90614373.png)

But it’s showing up like this and not tracking the time properly…help pls…

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

---

<div class="post-metadata">

### Author: ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)
#### Post date: [March 14, 2025, 1:52pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-timer-across-screens-and-show-the-time/3656013/2 "2025-03-14T13:52:04Z")

</div>

It isn’t necessary to add the `update time` since you already have the `updateElapsedTime` function in your code. As long as your timers are starting at 00:00:00, and your timer is counting up by every **second** , it should be fine. Milliseconds can also count too.

I can provide an example below for you:

Set your update time function:

```auto
function "update time"
  forever:
    wait 1 seconds
    change app variable formatted_seconds by 1
  forever:
    wait 60 seconds
    change app variable formatted_minutes by 1
  forever:
    wait 3600 seconds
    change app variable formatted_hours by 1

```

Formatted Time function:

```auto
function timer:
  if app variable TimerRunning = true:
    format time
    set Time_text text to:
      join:
        formatted_hours, ":", formatted_minutes, ":", formatted_seconds
    else:
      set formatted_hours to 0
      set formatted_minutes to 0
      set formatted_seconds to 0

```

Another error you’re probably encoutering is the zeroes. You’re combining a string and a number, which is not exactly ideal. Instead use number variables, and that might make your process a little better 🫠

---

<div class="post-metadata">

### Author: ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)
#### Post date: [March 14, 2025, 1:52pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-timer-across-screens-and-show-the-time/3656013/3 "2025-03-14T13:52:41Z")

</div>

If you could also tell me where you are testing this app on, that may be more useful to my understanding.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [June 12, 2025, 1:53pm UTC](https://community.thunkable.com/t/how-do-i-connect-a-timer-across-screens-and-show-the-time/3656013/4 "2025-06-12T13:53:21Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
