Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+10 votes

In case anyone happens to be using Python 3.8 (for future reference, anything above 3.7) upon trying to run the project code you're likely to get the error "AttributeError: module 'time' has no attribute 'clock'".

asked in CSC320 by (8 points)
edited by

1 Answer

+6 votes
Best answer

This was removed in a python update as noted in it's documentation.

The function time.clock() has been removed, after having been
deprecated since Python 3.3: use time.perf_counter() or
time.process_time() instead, depending on your requirements, to have
well-defined behavior.

answered by (8 points)

Thanks for sharing... I guess I'm running Python 3.7, which is now outdated... oops!