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