python -> time a while loop has been running,time.sleep(1)