Measure time inference of model

How can I measure the inference time of deep learning model?