Write times to log file