Struct XrTime
XrTime is a base value type that represents time as a signed 64-bit integer, representing the monotonically-increasing count of nanoseconds that have elapsed since a runtime-chosen epoch. XrTime always represents the time elasped since that constant epoch, rather than a duration or a time point relative to some moving epoch such as vsync time, etc.
Assembly: VIVE.OpenXR.dll
Syntax
public struct XrTime : IEquatable<long>
Constructors
XrTime(long)
Declaration
Parameters
Type |
Name |
Description |
long |
u |
|
Methods
Equals(long)
Declaration
public bool Equals(long other)
Parameters
Type |
Name |
Description |
long |
other |
|
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
Equals(XrTime)
Declaration
public bool Equals(XrTime other)
Parameters
Type |
Name |
Description |
XrTime |
other |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator +(XrTime, XrTime)
Declaration
public static XrTime operator +(XrTime a, XrTime b)
Parameters
Returns
operator /(XrTime, XrTime)
Declaration
public static XrTime operator /(XrTime a, XrTime b)
Parameters
Returns
operator ==(XrTime, XrTime)
Declaration
public static bool operator ==(XrTime a, XrTime b)
Parameters
Returns
operator >(XrTime, XrTime)
Declaration
public static bool operator >(XrTime a, XrTime b)
Parameters
Returns
operator >=(XrTime, XrTime)
Declaration
public static bool operator >=(XrTime a, XrTime b)
Parameters
Returns
implicit operator XrTime(long)
Declaration
public static implicit operator XrTime(long u)
Parameters
Type |
Name |
Description |
long |
u |
|
Returns
implicit operator long(XrTime)
Declaration
public static implicit operator long(XrTime equatable)
Parameters
Type |
Name |
Description |
XrTime |
equatable |
|
Returns
operator !=(XrTime, XrTime)
Declaration
public static bool operator !=(XrTime a, XrTime b)
Parameters
Returns
operator <(XrTime, XrTime)
Declaration
public static bool operator <(XrTime a, XrTime b)
Parameters
Returns
operator <=(XrTime, XrTime)
Declaration
public static bool operator <=(XrTime a, XrTime b)
Parameters
Returns
operator *(XrTime, XrTime)
Declaration
public static XrTime operator *(XrTime a, XrTime b)
Parameters
Returns
operator -(XrTime, XrTime)
Declaration
public static XrTime operator -(XrTime a, XrTime b)
Parameters
Returns
Implements