"requestTime" 数字在 Chrome DevTools 中意味着什么?
What does "requestTime" number mean in Chrome DevTools?
根据Chrome DevTools Protocol viewer requestTime
的值是以秒为单位的基线。为了理解它,我从几个网页中获取了这个值,对于所有这些网页,requestTime
的值都出乎意料地大。例如其中之一是 13133423 秒。有谁知道为什么 requestTime
的值太大了? requestTime
值是什么意思?
引用source code:
We want to present a unified timeline to Javascript. Using walltime is
problematic, because the clock may skew while resources load. To prevent
that skew, we record a single reference walltime when root document
navigation begins.
All other times are recorded using
monotonicallyIncreasingTime().
When a time needs to be presented to
Javascript, we build a pseudo-walltime using the following equation
(m_requestTime as example): pseudo time = document wall reference + (m_requestTime - document monotonic reference)
All values from monotonicallyIncreasingTime(), in base::TimeTicks.
有关 monotoniclyIncreasingTime 的更多信息:
根据Chrome DevTools Protocol viewer requestTime
的值是以秒为单位的基线。为了理解它,我从几个网页中获取了这个值,对于所有这些网页,requestTime
的值都出乎意料地大。例如其中之一是 13133423 秒。有谁知道为什么 requestTime
的值太大了? requestTime
值是什么意思?
引用source code:
We want to present a unified timeline to Javascript. Using walltime is problematic, because the clock may skew while resources load. To prevent that skew, we record a single reference walltime when root document navigation begins.
All other times are recorded using monotonicallyIncreasingTime().
When a time needs to be presented to Javascript, we build a pseudo-walltime using the following equation (m_requestTime as example):
pseudo time = document wall reference + (m_requestTime - document monotonic reference)
All values from monotonicallyIncreasingTime(), in base::TimeTicks.
有关 monotoniclyIncreasingTime 的更多信息: