Python 3.8.1 - AttributeError: module 'time' has no attribute 'clock'
themichaelmitchell opened this issue · 3 comments
themichaelmitchell commented
time.clock() appears to have been deprecated.
time.clock() is used here
replacing time.clock() with time.perf_counter() appears to solve this issue.
mraineri commented
Is perf_counter() available in older versions of Python?
themichaelmitchell commented
time.clock() appears to have been officially deprecated in 3.3, and removed in 3.7
mraineri commented
Got it, thanks.
Will need to add Python version checks too since this library is expected to run in Python 2.7 too.