Even with a loop the event code above would not work.
However other than that
@kirbwarrior has a point: an event is more than just the content, always give full screenshots of the event window including all the properties like conditions, page numbers, trigger and so on.
As for the big problem with your code above:
You CANNOT start and test the timer in the same event, you'll need to split the commands.
The test for timeout needs to be in a loop as said above because it checks only if the timer is at zero once when the event runs. a parallel process is better than a direct loop command however.
but starting the timer has to be outside that loop - if you place the above code in a parallel then it will never timeout, because each loop the timer is reset to 10 sec before the condition for less than 1 sec is tested, so it will never be true.