Time calculation

Is there any way that I know the time taken by prediction. Below is the code that I am using to predict an image.

pred_class,pred_idx,outputs = learn.predict(img)
pred_class

Hi AAmir

Regards Conwyn