changeset 30975 | 22fbca1d11ed |
parent 20839 | 377a111d1cd2 |
child 33892 | 78f644fdaa2a |
--- a/contrib/hgperf Wed Feb 15 11:53:59 2017 -0800 +++ b/contrib/hgperf Wed Feb 15 13:17:39 2017 -0800 @@ -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