cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Skilled Sharer
Skilled Sharer

Two timers - pause a timer with another timer

I have two timers, one (Timer1) is set to 2400 and the other is set to (Timer2) 600.  I want to 'pause' Timer1 when Timer2 stops.  This works - however, Timer1 runs a bit longer before the variable kicks in and 'pauses' the timer.

Timers.JPG

3 REPLIES 3
Highlighted
Kudo Kingpin
Kudo Kingpin

Hm, which actions you use? I have following setup and...it works for me (sorry to say it but that's true :P)

 

 

image.png

Left timer config

image.png

Right timer config

image.png

Highlighted
Community Support
Community Support

Hi @KickingApps,

Could you please share a bit more about your scenario?

How do you pause the Timer1 based on the Timer 2 within your app? Could you please share a bit more about your formula?

I have made a test on my side, please take a try with the following workaround:4.JPG

 

6.JPG

Set the Duration property of the Timer2 to following:

60000

Set the OnSelect property of the Timer2 to following:

Set(IsPause, !IsPause)

Set the AutoStart property of the Timer2 to following:

true

Set the Duration property of the Timer1 to following:

60000 

Set the AutoPause property of the Timer1 to following:

If(IsPause, true, false)

Set the Start property of the Timer1 to following:

If(!IsPause,true, false)

The GIF screenshot as below:Test1.gif

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted

@v-xida-msft  Thank you - I will try this tonight.  I have a next and back button, when I select next I start both timers.  When Timer2 ends (set to 600), the variable is changed to false for Timer1 so Timer1 will pause.  The key is that I need it to stop immediately @ 600ms.  But it is running past that for a second or two.  I'll mark as solution once I modify with the solution you put forth if it resolves the issue.

Thanks again!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,768)