Struct HighResolutionTimeSpan
Assembly: OnixS.Fix.Engine.dll
Syntax
public struct HighResolutionTimeSpan : IEquatable<HighResolutionTimeSpan>
Constructors
HighResolutionTimeSpan(TimeSpan, long)
Declaration
public HighResolutionTimeSpan(TimeSpan timeSpan, long picoseconds)
Parameters
Fields
Zero
Declaration
public static readonly HighResolutionTimeSpan Zero
Field Value
Properties
Microseconds
Subsecond part of time span
Declaration
public long Microseconds { get; }
Property Value
Milliseconds
Subsecond part of time span
Declaration
public long Milliseconds { get; }
Property Value
Nanoseconds
Subsecond part of time span
Declaration
public long Nanoseconds { get; }
Property Value
Picoseconds
Subsecond part of time span
Declaration
public readonly long Picoseconds { get; }
Property Value
TimeSpan
Second and above part of time span
Declaration
public readonly TimeSpan TimeSpan { get; }
Property Value
Methods
Equals(HighResolutionTimeSpan)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(HighResolutionTimeSpan other)
Parameters
Returns
Type |
Description |
bool |
true if the current object is equal to the other parameter; otherwise, false.
|
Equals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current instance.
|
Returns
Type |
Description |
bool |
true if obj and this instance are the same type and represent the same value; otherwise, false.
|
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer that is the hash code for this instance.
|
Overrides
ToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
The fully qualified type name.
|
Overrides
Declaration
public string ToString(TimeSpanFormat format)
Parameters
Returns
ToTimeSpan()
Rounded high-resolution value to standard TimeSpan resolution
Declaration
public TimeSpan ToTimeSpan()
Returns
Operators
operator +(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static HighResolutionTimeSpan operator +(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
operator ==(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static bool operator ==(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
operator >(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static bool operator >(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
operator >=(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static bool operator >=(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
operator !=(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static bool operator !=(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
operator <(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static bool operator <(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
operator <=(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static bool operator <=(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
operator -(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static HighResolutionTimeSpan operator -(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
operator -(in HighResolutionTimeSpan)
Declaration
public static HighResolutionTimeSpan operator -(in HighResolutionTimeSpan value)
Parameters
Returns
Implements