how to measure the time of execution of a code in python ?