I used so far tasker but with to give flow a try:
I have a loop with 33.333 ms intervals and a trigger ahead
Start task
Set variable =0
Set klwp global with variable
Loop
Variable = Variable + 1
Set klwp global with variable
Wait 33.333ms
Loop if total time<1500 ms
End task
Any idea what to do?