How do you get the time from a running clock?

Hi everybody,

I'm very new in using App Inventor. I created an app which runs a clock timer.
First, there appears a beep sound, when pushing a button, then is a pause (clock runs for 5 sec) and afterwards another beep is sounding. Very simple.
Now I'd like to display the running seconds as a text in the button.

How can I get the current time (counted seconds) of the running clock?

I tried "call clock .seconds" but with no success.

Thaks for any hint

Best Regards
Rolf

1 Like

Make a variable with value of second you want to display
And a timer with time interval 1 second
And each time clock ticks decrease variable value by one

You might try this way.

timer5Sec.aia (6.3 KB)

Hi there,

thank you all al lot for your kind help and the examples!
I will try it out.

Greetings, Rolf

1 Like

Hi Rolf
It’s great to see you diving into App Inventor. For displaying the running seconds on your button, you can create a variable to store the elapsed time and use a clock component with a timer set to 1 second intervals. Each time the timer ticks, you can increase your variable by one and update the button text with that variable's value.

What is the point of explaining what everyone can see in the blocks already posted and also test using my aia?