This extension provides two functions for converting between timespec monotonic time and XrTime. The ConvertTimespecTimeToTimeKHR function converts from timespec time to XrTime, while the ConvertTimeToTimespecTimeKHR function converts XrTime to timespec monotonic time. The primary use case for this functionality is to be able to synchronize events between the local system and the OpenXR system.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME
The extension name. |
| public static final int | XR_KHR_convert_timespec_time_SPEC_VERSION
The extension specification version. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nxrConvertTimespecTimeToTimeKHR(XrInstance instance, long unixTime, long time)
Unsafe version of: |
| public static int | xrConvertTimespecTimeToTimeKHR(XrInstance
an instance, long unixTime, LongBuffer XrInstance handle previously created with CreateInstance.the resulting time)XrTime that is equivalent to the timespecTime.Convert timespec monotonic time to XrTime. |
| public static int | xrConvertTimeToTimespecTimeKHR(XrInstance
an instance, long XrInstance handle previously created with CreateInstance.an time, long XrTime.the resulting timespec time that is equivalent to a timespecTime)timespec obtained from clock_gettime with CLOCK_MONOTONIC.Convert XrTime to timespec monotonic time. |
| XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME | back to summary |
|---|---|
| public static final String XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME The extension name. | |
| XR_KHR_convert_timespec_time_SPEC_VERSION | back to summary |
|---|---|
| public static final int XR_KHR_convert_timespec_time_SPEC_VERSION The extension specification version. | |
| KHRConvertTimespecTime | back to summary |
|---|---|
| protected KHRConvertTimespecTime() | |
| nxrConvertTimespecTimeToTimeKHR | back to summary |
|---|---|
| public static int nxrConvertTimespecTimeToTimeKHR(XrInstance instance, long unixTime, long time) Unsafe version of: | |
| xrConvertTimespecTimeToTimeKHR | back to summary |
|---|---|
| public static int xrConvertTimespecTimeToTimeKHR(XrInstance instance, long unixTime, LongBuffer time) Convert timespec monotonic time to XrTime. C SpecificationTo convert from timespec monotonic time to
DescriptionThe If the output Valid Usage (Implicit)
Return Codes
| |
| xrConvertTimeToTimespecTimeKHR | back to summary |
|---|---|
| public static int xrConvertTimeToTimespecTimeKHR(XrInstance instance, long time, long timespecTime) Convert XrTime to timespec monotonic time. C SpecificationTo convert from
DescriptionThe If the output Valid Usage (Implicit)
Return Codes
| |