What I hear as your problem is:
if the flow takes 20 seconds, I only need a 40 second wait time….if the flow takes 10 seconds, I need a 50 second wait time, etc.
in order to achieve this, I would:
Loop
Get urgent date time to %StartTime%
Add 1 minute to %StartTime% to get %NextTime%
‘Perform 1 Loop’s actions here
Loop While 1= 1
Get current datetime to %CheckTime%
If %CheckTime% is > %NextTime%
Exit (Loop)
End(If)
End (Loop)
End(Loop)
this will loop through checking what time it is and move onto the next loop when the CurrentDateTime is exactly 1 mins past the previous start time.