PyUtilib / pyutilib

A collection of general Python utilities, including logging and file IO, subprocess management, plugin systems, and workflow management.
BSD 3-Clause "New" or "Revised" License
34 stars 21 forks source link

Incompatibility with Python 3.8 (time.clock) #65

Closed justanothergithubber closed 4 years ago

justanothergithubber commented 4 years ago

I recently updated to Python 3.8, and this dependency breaks pyomo for Python 3.8

Specifically, this line is creating trouble: timer = time.clock The function time.clock() has been removed in Python 3.8, and should be replaced with either time.perf_counter() or time.process_time().

From my reading of the Python documentation, it seems that time.perf_counter() is the one that should be used, although I am not very sure.