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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.