record the time