Struct HighResolutionTimeSpan
Assembly: OnixS.Cme.ILink3.dll
Syntax
public struct HighResolutionTimeSpan : IEquatable<HighResolutionTimeSpan>
Constructors
HighResolutionTimeSpan(TimeSpan, Int64)
Declaration
public HighResolutionTimeSpan(TimeSpan timeSpan, long picoseconds)
Parameters
Type |
Name |
Description |
TimeSpan |
timeSpan |
|
Int64 |
picoseconds |
|
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
Type |
Description |
TimeSpan |
|
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
GetHashCode()
Declaration
public override int GetHashCode()
Returns
ToString()
Declaration
public override string ToString()
Returns
Declaration
public string ToString(TimeSpanFormat format)
Parameters
Returns
ToTimeSpan()
Rounded high-resolution value to standard TimeSpan resolution
Declaration
public TimeSpan ToTimeSpan()
Returns
Type |
Description |
TimeSpan |
|
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
IEquatable<>