結果 : how to check if a second has passed in python