Break from while loops after specific time

Hy, thank you for the idea but I want to continue loop like everything was fine actualy.