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

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
timeOrigin

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support