Use time.time() for counting seconds.