C Specification

typedef int64_t XrTime;

Description

XrTime is a base value type to represent time, as a 64 bit integer. Unless specified otherwise, XrTime denotes a time-point relative to some runtime-determined constant epoch, rather than a duration, or a time-point with some moving epoch such as function call time, vsync time, etc.

Time may be represented by the runtime with a standardized epoch (e.g. 12:00:00 January 1, 1970 as of runtime start), or an arbitrary epoch may be used (e.g. time since runtime start). Time overflows after 264 nanoseconds have occurred since the epoch. A single runtime must use the same epoch for all simultaneous applications. Time must be represented the same regardless of multiple processors or threads present in the system.

The period precision of time reported by the runtime is runtime-dependent, and may change. One nanosecond is the finest possible period precision. A runtime may, for example, report time progression with only microsecond-level granularity.

Time must not be assumed to correspond to a system clock time.

See Also

Document Notes

For more information, see the OpenXR Specification at URL

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.