Please update time.clock to time.pref_counter() as time.clock() has been depreciated from python 3.3 forward
reason it was depreciated was due to its lack of cross compatibly.
source of solution: https://stackoverflow.com/questions/58569361/attributeerror-module-time-has-no-attribute-clock-in-python-3-8
short version
change line 20 start = time.clock()
to this
start = time.time()
or this
start = time.perf_counter()
Please update
time.clocktotime.pref_counter()as time.clock() has been depreciated from python 3.3 forwardreason it was depreciated was due to its lack of cross compatibly.
source of solution:
https://stackoverflow.com/questions/58569361/attributeerror-module-time-has-no-attribute-clock-in-python-3-8short version
change line 20
start = time.clock()to this
start = time.time()or this
start = time.perf_counter()