python3+selenium如何获取页面的加载时间或者时间戳

问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
##获取页面加载时间
url='http://192.168.1.199/'
x=webdriver.Chrome()
x.get(url)
x.find_element(By.ID,'username').send_keys('su')
x.find_element(By.ID,'password').send_keys('123456')
x.find_element(By.XPATH,'//*[@id="login"]/div[3]/input[1]').click()
运行结果及报错内容
我的解答思路和尝试过的方法

试过用loadEventTime这个方法 但是报错

我想要达到的结果

加载完页面可以获取一个加载页面的时间用来输出


from datetime import datetime

##获取页面加载时间
a = datetime.now()
url='http://192.168.1.199/'
x=webdriver.Chrome()
x.get(url)
x.find_element(By.ID,'username').send_keys('su')
x.find_element(By.ID,'password').send_keys('123456')
x.find_element(By.XPATH,'//*[@id="login"]/div[3]/input[1]').click()

prinr(datetime.now() - a)