optimize time record