Struct HighResolutionTimeSpan
Assembly: OnixS.Fix.Engine.dll
Syntax
public struct HighResolutionTimeSpan : IEquatable<HighResolutionTimeSpan>
Constructors
HighResolutionTimeSpan(TimeSpan, Int64)
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 readonly long Microseconds { get; }
Property Value
Milliseconds
Subsecond part of time span
Declaration
public readonly long Milliseconds { get; }
Property Value
Nanoseconds
Subsecond part of time span
Declaration
public readonly 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)
Declaration
public bool Equals(HighResolutionTimeSpan other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Declaration
public string ToString(TimeSpanFormat format)
Parameters
Returns
ToTimeSpan()
Rounded high-resolution value to standard TimeSpan resolution
Declaration
public TimeSpan ToTimeSpan()
Returns
Operators
Addition(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static HighResolutionTimeSpan operator +(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
Equality(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static bool operator ==(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
GreaterThan(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static bool operator>(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
GreaterThanOrEqual(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static bool operator >=(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
Inequality(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static bool operator !=(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
LessThan(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static bool operator <(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
LessThanOrEqual(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static bool operator <=(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
Subtraction(in HighResolutionTimeSpan, in HighResolutionTimeSpan)
Declaration
public static HighResolutionTimeSpan operator -(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Returns
UnaryNegation(in HighResolutionTimeSpan)
Declaration
public static HighResolutionTimeSpan operator -(in HighResolutionTimeSpan value)
Parameters
Returns
Implements