diff options
Diffstat (limited to 'contrib/python/ipython/py3/IPython/utils/timing.py')
| -rw-r--r-- | contrib/python/ipython/py3/IPython/utils/timing.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/python/ipython/py3/IPython/utils/timing.py b/contrib/python/ipython/py3/IPython/utils/timing.py index 92f6883c4af..3a181ae7288 100644 --- a/contrib/python/ipython/py3/IPython/utils/timing.py +++ b/contrib/python/ipython/py3/IPython/utils/timing.py @@ -64,13 +64,14 @@ if resource is not None and hasattr(resource, "getrusage"): 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 + # time.process_time() for everything... + clocku = clocks = clock = time.process_time + def clock2(): """Under windows, system CPU time can't be measured. - This just returns perf_counter() and zero.""" - return time.perf_counter(),0.0 + This just returns process_time() and zero.""" + return time.process_time(), 0.0 def timings_out(reps,func,*args,**kw): |
