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 September 2015.

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

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

语法

var timeOrigin = performance.timeOrigin

高精度 timestamp,例如 1518354643295.86

Specifications

Specification
High Resolution Time
# dom-performance-timeorigin

Browser Compatibility

BCD tables only load in the browser