ImportError: cannot import name 'clock' from 'time' (unknown location)

I am not sure if this is only because I am using python3.8 but I was able to get rid of the error and run python manage.py migrate after changing from from time import clock to from time import time and another line from clock() to time()