--- a/mercurial/streamclone.py Wed Feb 15 11:53:59 2017 -0800
+++ b/mercurial/streamclone.py Wed Feb 15 13:17:39 2017 -0800
@@ -8,7 +8,6 @@
from __future__ import absolute_import
import struct
-import time
from .i18n import _
from . import (
@@ -297,7 +296,7 @@
(filecount, util.bytecount(bytecount)))
handled_bytes = 0
repo.ui.progress(_('clone'), 0, total=bytecount, unit=_('bytes'))
- start = time.time()
+ start = util.timer()
# TODO: get rid of (potential) inconsistency
#
@@ -340,7 +339,7 @@
# streamclone-ed file at next access
repo.invalidate(clearfilecache=True)
- elapsed = time.time() - start
+ elapsed = util.timer() - start
if elapsed <= 0:
elapsed = 0.001
repo.ui.progress(_('clone'), None)