搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to get finish time from network console tab of firefox through an api?

  • 5 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 Sammore

more options

Through the network tab found on web developer tool option,how can i find out the finish time which is present in the summary section of network tab through an api. For example: Load time of a webpage can be calculated directly as it present in the summary section of the network tab or also through the Performance API by just mentioning the console section (performance.timing.loadEventEnd-performance.timing.navigationStart) .So i want to know is there any api or any way in which the finish time can be calculated so that it can be used in the automation.

Through the network tab found on web developer tool option,how can i find out the finish time which is present in the summary section of network tab through an api. For example: Load time of a webpage can be calculated directly as it present in the summary section of the network tab or also through the Performance API by just mentioning the console section (performance.timing.loadEventEnd-performance.timing.navigationStart) .So i want to know is there any api or any way in which the finish time can be calculated so that it can be used in the automation.

所有回覆 (5)

more options

Anything useful in the source code?

I'm not sure if there are many around here that know about such advanced features, so maybe ask advice at the Stack Overflow forum site.

more options
more options

Oh wait, the compatibility table in that MDN article says no support in Firefox. I guess you have to use

https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime

+

https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration

Timestamp math is a little beyond our usual mission, however.

more options

cor-el said

Anything useful in the source code? I'm not sure if there are many around here that know about such advanced features, so maybe ask advice at the Stack Overflow forum site.

How can the source code be useful ?i went through but couldn't find anything ?

more options

jscher2000 said

loadEventEnd is the finish time, isn't it? https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd

NO.The loadeventEnd - navigationStart gives us the Load time.But I am searching for something which can give me finish time that also take into consideration the rendering time