branch | stable |
changeset 32054 | 616e788321cc |
parent 30975 | 22fbca1d11ed |
child 33892 | 78f644fdaa2a |
--- a/contrib/hgperf Tue Apr 18 11:22:42 2017 -0400 +++ b/contrib/hgperf Tue Apr 18 12:24:34 2017 -0400 @@ -55,17 +55,15 @@ import mercurial.util import mercurial.dispatch -import time - def timer(func, title=None): results = [] - begin = time.time() + begin = mercurial.util.timer() count = 0 while True: ostart = os.times() - cstart = time.time() + cstart = mercurial.util.timer() r = func() - cstop = time.time() + cstop = mercurial.util.timer() ostop = os.times() count += 1 a, b = ostart, ostop