此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

Performance.timeOrigin

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2021年9月⁩.

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

接口 Performance 的只读属性 timeOrigin 返回一个表示 the performance measurement 开始时间的高精度 timestamp

语法

var timeOrigin = performance.timeOrigin

高精度 timestamp,例如 1518354643295.86

Specifications

Specification
High Resolution Time
# dom-performance-timeorigin

Browser Compatibility