If the record was broken, the contestant's time will be the new record.

Store the value of time in the record variable.

Make sure you assemble record = time;.