From eb5685b0ac2884dfadac25f5b7cc13ff229e3be9 2021-07-10 18:08:34 From: Douglas Blank Date: 2021-07-10 18:08:34 Subject: [PATCH] Fix else --- diff --git a/IPython/utils/timing.py b/IPython/utils/timing.py index c4acd6f..16de71c 100644 --- a/IPython/utils/timing.py +++ b/IPython/utils/timing.py @@ -61,7 +61,7 @@ if resource is not None and hasattr(resource, "getrusage"): Similar to clock(), but return a tuple of user/system times.""" return resource.getrusage(resource.RUSAGE_SELF)[:2] -except ImportError: +else: # There is no distinction of user/system time under windows, so we just use # time.perff_counter() for everything... clocku = clocks = clock = time.perf_counter