import time
print(chr(27) + "[2J") # Somehow this clears the console??
print("*************************")
# Get the current processor
# time in seconds
program_time = time.clock()
# print the current
# processor time
print("Current processor time (in seconds):", program_time)
The time library has a valid method called clock(). But when I run the code I get an error:
AttributeError: module 'time' has no attribute 'clock'