Duration of training time trainer api


i use the trainer api to finetune a seq2seq model. I wonder if there is the possibility to log the total runtime of the training script? If thats not built in, how to log the training time manually?

Thanks in advance

Found the answer by myself:
train_results.json logs the “train_runtime”