.. highlight:: rst Timing Your Code ---------------- Timing your code is a more complex task you imagine. If the code to run takes long and you are not fond in very precise measurements, then the module time is a very simple way to do it. Otherwise you should use the module timeit. See the two examples below. .. literalinclude:: TutCodes/housetime.py :language: python .. image:: TutCodes/time_qr.png :scale: 100 % .. literalinclude:: TutCodes/housetime_2.py :language: python .. image:: TutCodes/time_qr_2.png :scale: 100 %