performance.now()是否从navigationStart开始?

时间:2018-06-13 17:18:41

标签: javascript google-chrome resource-timing-api

performance.now()的起源时间是多少?是navigationStart,requestStart还是别的什么?

1 个答案:

答案 0 :(得分:0)

MDN say

  

performance.timing.navigationStart + performance.now()将为   大约等于Date.now()

performance.now()= Date.now()-performance.timing.navigationStart

performance.now()开始 navigationStart ms beyond January 1, 1970