How to calculate time taken?

@rshrestha_winrock, we have a bunch of workarounds discussed previously (it should help you meet your needs):

Another one …

One more …

This could also be helpful …