What is the proper way to compare 2 times in Python in order to speed test a section of code? I tried reading the API docs. I\'m not sure I understand the timedelta thing.>
You could also use:
import time start = time.clock() do_something() end = time.clock() print "%.2gs" % (end-start)
Or you could use the python profilers.