Running the program for a specific amount of time