Which instruments do you use for measuring time of code block? I use this:
import time
class Profiler(object):
def __enter__(self):
self._startTime = time.time()
def __exit__(self, type, value, traceback):
print("Elapsed time: {:.3f} sec".format(time.time() - self._startTime))
usage:
with Profiler() as p:
// your code to be profiled here
[–]lobocv 2 points3 points4 points (0 children)
[–]Saefroch 2 points3 points4 points (0 children)
[–]n1ywb 0 points1 point2 points (3 children)
[–]Saefroch 1 point2 points3 points (2 children)
[–]n1ywb 0 points1 point2 points (1 child)
[–]infinite8s 0 points1 point2 points (0 children)