API reference
API reference
Select your platform
No SDKs available
No versions available

XrTime Struct

Extends IEquatable< XrTime >, IComparable< XrTime >

Constructors

XrTime ( value )
Signature
XrTime(long value)
Parameters
value: long

Fields

_value : readonly long
Signature
readonly long _value

Properties

PredictedDisplayTime : XrTime
[Get]
The predicted display time.
The predicted display time is the time at which the runtime predicts the current frame will be displayed to the user. This is often used as a parameter to functions that provide a pose or other data at a given time. Often, rather than use the current time, you should specify the predicted display time.
Signature
XrTime PredictedDisplayTime
Value : long
[Get]
The raw value for this XrTime.
This represents the number of nanoseconds since an epoch used by the OpenXR runtime.
Signature
long Value

Methods

CompareTo ( obj )
Signature
int CompareTo(object obj)
Parameters
obj: object
Returns
int
CompareTo ( other )
Signature
int CompareTo(XrTime other)
Parameters
other: XrTime
Returns
int
Equals ( other )
Signature
bool Equals(XrTime other)
Parameters
other: XrTime
Returns
bool
Equals ( obj )
Signature
override bool Equals(object obj)
Parameters
obj: object
Returns
override bool
GetHashCode ()
Signature
override int GetHashCode()
Returns
override int
ToSeconds ()
This XrTime represented as a number of seconds.
Signature
double ToSeconds()
Returns
double  Returns the number of seconds since the epoch used by this XrTime.
ToString ()
Signature
override string ToString()
Returns
override string

Static Methods

FromSeconds ( seconds )
Signature
static XrTime FromSeconds(double seconds)
Parameters
seconds: double
Returns
XrTime
operator!= ( left , right )
Signature
static bool operator!=(XrTime left, XrTime right)
Parameters
left: XrTime
right: XrTime
Returns
bool
operator+ ( left , right )
Signature
static XrTime operator+(XrTime left, XrDuration right)
Parameters
left: XrTime
right: XrDuration
Returns
XrTime
operator- ( left , right )
Signature
static XrTime operator-(XrTime left, XrDuration right)
Parameters
left: XrTime
right: XrDuration
Returns
XrTime
operator- ( left , right )
Signature
static XrDuration operator-(XrTime left, XrTime right)
Parameters
left: XrTime
right: XrTime
Returns
XrDuration
operator< ( left , right )
Signature
static bool operator<(XrTime left, XrTime right)
Parameters
left: XrTime
right: XrTime
Returns
bool
operator<= ( left , right )
Signature
static bool operator<=(XrTime left, XrTime right)
Parameters
left: XrTime
right: XrTime
Returns
bool
operator== ( left , right )
Signature
static bool operator==(XrTime left, XrTime right)
Parameters
left: XrTime
right: XrTime
Returns
bool
operator> ( left , right )
Signature
static bool operator>(XrTime left, XrTime right)
Parameters
left: XrTime
right: XrTime
Returns
bool
operator>= ( left , right )
Signature
static bool operator>=(XrTime left, XrTime right)
Parameters
left: XrTime
right: XrTime
Returns
bool