DOMHighResTimeStamp

DOMHighResTimeStamp 是一个double类型,用于存储时间值。该值可以是离散的时间点或两个离散时间点之间的时间差。T单位为毫秒 ms (milliseconds) ,应准确至5微秒 µs (microseconds)。但是,如果浏览器无法提供准确到5微秒的时间值(例如,由于硬件或软件的限制), 浏览器可以以毫秒为单位的精确到毫秒的时间表示该值。

I无法获得所需精度的实现(例如,如果底层系统不支持),则只能准确到1毫秒。

Properties

This type has no properties.

Methods

This type has no methods.

Specifications

Specification Status Comment
High Resolution Time Level 2
DOMHighResTimeStamp
Editor's Draft Stricter definitions of interfaces and types.
High Resolution Time
DOMHighResTimeStamp
Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 6 7.0 (7.0) 9 15.0 8
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support (Yes) 15.0 (15.0) 9 15.0 9

See also

文档标签和贡献者