Show More
@@ -2057,16 +2057,17 b' def checkwinfilename(path):' | |||||
2057 | ) |
|
2057 | ) | |
2058 |
|
2058 | |||
2059 |
|
2059 | |||
|
2060 | timer = getattr(time, "perf_counter", None) | |||
|
2061 | ||||
2060 | if pycompat.iswindows: |
|
2062 | if pycompat.iswindows: | |
2061 | checkosfilename = checkwinfilename |
|
2063 | checkosfilename = checkwinfilename | |
2062 | timer = time.clock |
|
2064 | if not timer: | |
|
2065 | timer = time.clock | |||
2063 | else: |
|
2066 | else: | |
2064 | # mercurial.windows doesn't have platform.checkosfilename |
|
2067 | # mercurial.windows doesn't have platform.checkosfilename | |
2065 | checkosfilename = platform.checkosfilename # pytype: disable=module-attr |
|
2068 | checkosfilename = platform.checkosfilename # pytype: disable=module-attr | |
2066 | timer = time.time |
|
2069 | if not timer: | |
2067 |
|
2070 | timer = time.time | ||
2068 | if safehasattr(time, "perf_counter"): |
|
|||
2069 | timer = time.perf_counter |
|
|||
2070 |
|
2071 | |||
2071 |
|
2072 | |||
2072 | def makelock(info, pathname): |
|
2073 | def makelock(info, pathname): |
General Comments 0
You need to be logged in to leave comments.
Login now