--- title: VRPose.timestamp slug: Web/API/VRPose/timeStamp translation_of: Web/API/VRPose/timeStamp ---
{{APIRef("WebVR API")}}{{SeeCompatTable}}

timestamp 是 {{domxref("VRPose")}} 接口的只读属性,返回为系统此时的时间戳 — 一个单调递增的数值,代表这个软件启动到现在的时间。

这个属性对于确定位置数据是否已更新和什么次序更新了很有用。

Syntax

var myTimeStamp = VRPose.timestamp;

Value

{{domxref("DOMHighResTimeStamp")}} 代表时间戳,以秒为单位.

Examples

TBD.

Specifications

Specification Status Comment
{{SpecName('WebVR', '#dom-vrpose-timestamp', 'timestamp')}} {{Spec2('WebVR')}} 初始定义

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatNo}} {{CompatNo}} {{CompatNo}}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile Chrome for Android
Basic support {{CompatNo}} {{CompatVersionUnknown}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}}

See also