mercurial/util.py
changeset 51294 7d3b92e8df13
parent 51287 f15cb5111a1e
child 51298 c8a2fdf5ca37
equal deleted inserted replaced
51293:03fc41fe8aa1 51294:7d3b92e8df13
  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