Trigger an action with a button after a certain time

Hello.
Can't do what I want. I can not understandt how to make the action run after a while when the button is pressed.
In my case, the button starts the stopwatch. It is necessary that after pressing the button, the stopwatch starts after 4 seconds.
My blocks:
Screenshot_6

Clock 1 is a stopwatch
Clock 2 - I wanted to set the time to turn on

1 Like

How will a clock instant ever equal 4000 ?

1 Like

For doing math on time, Clock1.SystemTime works better.
Add 4000 to it to get the SystemTime you want for your deadline, and compare that against current SystemTime for before/after comparisons.

2 Likes

The clock.now not returning time ?

1 Like

I'm afraid to break the stopwatch by making changes to clock 1, which is responsible for the stopwatch

1 Like

Understood your idea. But to implement...
Add 4000 through plus? Or what method?
Screenshot_7

1 Like

Here is a sample for you to study...

1 Like

You could do it with one clock timer....

2 Likes


Made according to your example, it turns out the stopwatch starts after 4 seconds, but then it counts 4 seconds and starts again. That is, the condition for execution is always suitable. I also looked at your example on the phone, there is also a loop there.

1 Like

Thanks for the idea, I'll try

1 Like