Record the batch time as metadata.