Submitter | phabricator |
---|---|
Date | Jan. 8, 2020, 7:49 p.m. |
Message ID | <1351bac51a7a339c2cf11ee2aec96be8@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/44196/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -15,7 +15,6 @@ import re import signal import sys -import time import traceback @@ -1040,8 +1039,8 @@ def get_times(): t = os.times() if t[4] == 0.0: - # Windows leaves this as zero, so use time.clock() - t = (t[0], t[1], t[2], t[3], time.clock()) + # Windows leaves this as zero, so use time.perf_counter() + t = (t[0], t[1], t[2], t[3], util.timer()) return t s = get_times()