Mercurial > hg
diff contrib/hgperf @ 32054:616e788321cc stable 4.2-rc
freeze: merge default into stable for 4.2 code freeze
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 18 Apr 2017 12:24:34 -0400 |
parents | 22fbca1d11ed |
children | 78f644fdaa2a |
line wrap: on
line diff
--- 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