Let me start off by saying I know almost nothing about python but have to write a program in three different languages (already done in java and c++).
I need to be a
if you want something simpler
import time startMillis = int(round(time.time() * 1000)) print startMillis time.sleep(5) # this is your function that takes time to execute endMillis = int(round(time.time() * 1000)) print endMillis timeTaken = endMillis - startMillis