The DOMHighResTimeStamp
type is a double
and is used to store a time value. The value could be a discrete point in time or the difference in time between two discrete points in time. The unit is milliseconds and should be accurate to 5 µs (microseconds). However, if the browser is unable to provide a time value accurate to 5 microseconds (due, for example, to hardware or software constraints), the browser can represent the value as a time in milliseconds accurate to a millisecond.
Implementations that cannot get the required precision (for example, if the underlying system doesn't support it) are allowed to only be accurate to one millisecond.
This type has no properties.
This type has no methods.
Specification | Status | Comment |
---|---|---|
High Resolution Time Level 2 The definition of 'DOMHighResTimeStamp' in that specification. | Editor's Draft | Stricter definitions of interfaces and types. |
High Resolution Time The definition of 'DOMHighResTimeStamp' in that specification. | Recommendation | Initial definition. |
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 |
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp