you must add here "all_time++;" because you pass first second without counting.