mercurial/dispatch.py
changeset 30995 22fbca1d11ed
parent 30954 6d642ecf1a89
child 30996 e92daf156d5c
--- a/mercurial/dispatch.py	Wed Feb 15 11:53:59 2017 -0800
+++ b/mercurial/dispatch.py	Wed Feb 15 13:17:39 2017 -0800
@@ -123,7 +123,7 @@
         return -1
 
     msg = ' '.join(' ' in a and repr(a) or a for a in req.args)
-    starttime = time.time()
+    starttime = util.timer()
     ret = None
     try:
         ret = _runcatch(req)
@@ -135,7 +135,7 @@
                 raise
         ret = -1
     finally:
-        duration = time.time() - starttime
+        duration = util.timer() - starttime
         req.ui.flush()
         req.ui.log("commandfinish", "%s exited %s after %0.2f seconds\n",
                    msg, ret or 0, duration)