Break from while loops after specific time

this works but again creates a partwise blocking code through the while-loop.

As the name says while (condition evaluates to true)
stay INSIDE the while-loop

best regards Stefan