Ok, im working with the progress bar, is there a way to make the timer start a specific time, lets say when the user clicks a button, and then make it stop when when the function is done instead of making it work for a certain amount of time? like instead of putting a 5 second lapse at 5000 make it go until a function is done?