Oy! no! Just use a timer event with a bit of state in one or more memory tags.
Ignition is event driven. Any kind of looping to wait for some condition, whether time or signal, is an invitation to disaster. Any kind of .sleep() call is major red flag.