The methods is so complicated.
I want to check the execution time of each statement
so that I can modify that part in order to increase speed.
Thanks in advance,
Raymond
The methods is so complicated.
I want to check the execution time of each statement
so that I can modify that part in order to increase speed.
Thanks in advance,
Raymond
Python has module profile
The methods is so complicated.
I want to check the execution time of each statement
so that I can modify that part in order to increase speed.
Thanks in advance,Raymond
I'd start with this http://docs.python.org/library/profile.html and maybe this http://docs.python.org/library/dis.html.
HTH.
Mark Lawrence
I'd start with this http://docs.python.org/library/profile.html and maybe this http://docs.python.org/library/dis.html.
HTH.
Mark Lawrence
This might also help, I've only just found out about it.
http://pypi.python.org/pypi/line_profiler
Well, you could just do this as well:
import time
timevar1 = time.time()
# YOUR CODE GOES HERE
timevar2 = time.time()
print(timevar2-timevar1)
That will determine how many seconds it takes for your script to execute
The #5 method is quite easy to use, thanks
I do not have the time to try the above method, sorry, and Thanks to all of you!
No problem. Glad I could be of help.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.