get time of execution of a block of code in python 2.7,time.sleep(1)