fogleman / Minecraft

Simple Minecraft-inspired program using Python and Pyglet
MIT License
5.22k stars 1.23k forks source link

AttributeError: module 'time' has no attribute 'clock' - Python 3.8 #108

Closed Maug92 closed 3 years ago

Maug92 commented 4 years ago

Failed with:

File ".\main.py", line 422, in process_queue
    start = time.clock()
AttributeError: module 'time' has no attribute 'clock'

Fix:

Replace all calls to time.clock() with time.perf_counter(). time.clock() has been removed from the time module in Python 3.8.