djangosnippets.org: Latest snippets tagged with 'high-performance'https://djangosnippets.org/tags/high-performance/2008-06-04T10:54:04.231105-05:00Create breakpoints to time code at
2008-06-04T10:54:04.231105-05:00menendezhttps://djangosnippets.org/snippets/783/<p>Include in your code like this:</p>
<p>t=Timer()</p>
<p>Then use it like this:</p>
<p>t.tick('Some optional description')</p>
<p>It will output the time spent between the tick and the previous tick (or inception) and the total time spent since it began tracking time. Can be placed multiple times in a long segment of …</p>
Freely redistributable