I'm working on a program that works inside a while loop. The program starts when runned, stops when the stop button of the while loop is pressed. Right now, I have a way of making a timer for the program, but it doesn't work the way I want. Right now, when the program starts the timer starts, and when it reaches a certain time, the whole program stops. I wonder if I can make something like this: run the program, when I chose to, I start a function of the program that will be controlled by the timer, and when the timer reaches the certain time, the function that the timer was controlling will stop but the program itself won't. Thanks for your time.