I always forget, can't remember. Googling kills lots of time. This blog is only for myself, but if you get any help from this, it will be a bonus for me.
Wednesday, October 07, 2009
Calculating elapsed Time in python
import time
startTime = time.time()
myWorkHere() #do your work here
endTime = time.time() print"Total time elapsed = ", endTime - startTime, "seconds."
No comments:
Post a Comment