How To Calculate Training Time In Python