mercurial/tags.py
changeset 30975 22fbca1d11ed
parent 29216 ead25aa27a43
child 31025 6cf2857526c7
--- a/mercurial/tags.py	Wed Feb 15 11:53:59 2017 -0800
+++ b/mercurial/tags.py	Wed Feb 15 13:17:39 2017 -0800
@@ -14,7 +14,6 @@
 
 import array
 import errno
-import time
 
 from .node import (
     bin,
@@ -344,7 +343,7 @@
         # potentially expensive search.
         return ([], {}, valid, None, True)
 
-    starttime = time.time()
+    starttime = util.timer()
 
     # Now we have to lookup the .hgtags filenode for every new head.
     # This is the most expensive part of finding tags, so performance
@@ -359,7 +358,7 @@
 
     fnodescache.write()
 
-    duration = time.time() - starttime
+    duration = util.timer() - starttime
     ui.log('tagscache',
            '%d/%d cache hits/lookups in %0.4f '
            'seconds\n',