refer to: http://www.techarticles.zeromu.net/programming/keeping-track-of-elapsed-time-in-python/
This article shows how to put a few lines of python code into your python script so you can tell how long the script has been running, or how long a certain part of the task took to run.
The Quick Answer: For the most accurrate time elapsed, use the time module and make 2 time.time() objects. The difference between these objects is the time elapsed. Do not use time.clock(). The Whole Story
Its pretty basic: I have certain parts of a large python script (that happen to access a MySQL database) that I would like to keep track of how long it took them to execute. Wrong Answers
Initially, I read on a PLEAC-Python article, Dates and Times (which really is a great overview of Python’s time module), about some ways to use Python’s time module. That article suggests that all you need to do is: ?