equal
deleted
inserted
replaced
2124 timer = getattr(time, "perf_counter", None) |
2124 timer = getattr(time, "perf_counter", None) |
2125 |
2125 |
2126 if pycompat.iswindows: |
2126 if pycompat.iswindows: |
2127 checkosfilename = checkwinfilename |
2127 checkosfilename = checkwinfilename |
2128 if not timer: |
2128 if not timer: |
2129 timer = time.clock |
2129 timer = time.clock # pytype: disable=module-attr |
2130 else: |
2130 else: |
2131 # mercurial.windows doesn't have platform.checkosfilename |
2131 # mercurial.windows doesn't have platform.checkosfilename |
2132 checkosfilename = platform.checkosfilename # pytype: disable=module-attr |
2132 checkosfilename = platform.checkosfilename # pytype: disable=module-attr |
2133 if not timer: |
2133 if not timer: |
2134 timer = time.time |
2134 timer = time.time |