2 from debug_toolbar.panels import DebugPanel
4 class TimerDebugPanel(DebugPanel):
6 Panel that displays the time a response took.
10 def __init__(self, request):
11 super(TimerDebugPanel, self).__init__(request)
12 self._start_time = time.time()
15 return 'Time: %0.2fms' % ((time.time() - self._start_time) * 1000)