DMTF/python-redfish-library

Python 3.8.1 - AttributeError: module 'time' has no attribute 'clock'

themichaelmitchell opened this issue · 3 comments

time.clock() appears to have been deprecated.

time.clock() is used here

replacing time.clock() with time.perf_counter() appears to solve this issue.

Is perf_counter() available in older versions of Python?

time.clock() appears to have been officially deprecated in 3.3, and removed in 3.7

https://bugs.python.org/issue31803

Got it, thanks.

Will need to add Python version checks too since this library is expected to run in Python 2.7 too.