diff piecrust/serving/server.py @ 554:155c7e20414f

serve: Fix timing information in the debug window.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 08 Aug 2015 22:22:22 -0700
parents cc6f3dbe3048
children daf8df5ade7d
line wrap: on
line diff
--- a/piecrust/serving/server.py	Sat Aug 08 22:01:47 2015 -0700
+++ b/piecrust/serving/server.py	Sat Aug 08 22:22:22 2015 -0700
@@ -202,7 +202,7 @@
 
         # Profiling.
         if app.config.get('site/show_debug_info'):
-            now_time = time.clock()
+            now_time = time.perf_counter()
             timing_info = (
                     '%8.1f ms' %
                     ((now_time - app.env.start_time) * 1000.0))