• Version 1.15.2
Show / Hide Table of Contents

Struct HighResolutionTimeSpan

Implements
IEquatable<HighResolutionTimeSpan>
Inherited Members
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: OnixS.Fix
Assembly: OnixS.Fix.Engine.dll
Syntax
public struct HighResolutionTimeSpan : IEquatable<HighResolutionTimeSpan>

Constructors

HighResolutionTimeSpan(TimeSpan, long)

Declaration
public HighResolutionTimeSpan(TimeSpan timeSpan, long picoseconds)
Parameters
Type Name Description
TimeSpan timeSpan
long picoseconds

Fields

Zero

Declaration
public static readonly HighResolutionTimeSpan Zero
Field Value
Type Description
HighResolutionTimeSpan

Properties

Microseconds

Subsecond part of time span

Declaration
public long Microseconds { get; }
Property Value
Type Description
long

Milliseconds

Subsecond part of time span

Declaration
public long Milliseconds { get; }
Property Value
Type Description
long

Nanoseconds

Subsecond part of time span

Declaration
public long Nanoseconds { get; }
Property Value
Type Description
long

Picoseconds

Subsecond part of time span

Declaration
public readonly long Picoseconds { get; }
Property Value
Type Description
long

TimeSpan

Second and above part of time span

Declaration
public readonly TimeSpan TimeSpan { get; }
Property Value
Type Description
TimeSpan

Methods

Equals(HighResolutionTimeSpan)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(HighResolutionTimeSpan other)
Parameters
Type Name Description
HighResolutionTimeSpan other

An object to compare with this object.

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
ValueType.Equals(object)

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
ValueType.GetHashCode()

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
ValueType.ToString()

ToString(TimeSpanFormat)

Declaration
public string ToString(TimeSpanFormat format)
Parameters
Type Name Description
TimeSpanFormat format
Returns
Type Description
string

ToTimeSpan()

Rounded high-resolution value to standard TimeSpan resolution

Declaration
public TimeSpan ToTimeSpan()
Returns
Type Description
TimeSpan

Operators

operator +(in HighResolutionTimeSpan, in HighResolutionTimeSpan)

Declaration
public static HighResolutionTimeSpan operator +(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Type Name Description
HighResolutionTimeSpan left
HighResolutionTimeSpan right
Returns
Type Description
HighResolutionTimeSpan

operator ==(in HighResolutionTimeSpan, in HighResolutionTimeSpan)

Declaration
public static bool operator ==(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Type Name Description
HighResolutionTimeSpan left
HighResolutionTimeSpan right
Returns
Type Description
bool

operator >(in HighResolutionTimeSpan, in HighResolutionTimeSpan)

Declaration
public static bool operator >(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Type Name Description
HighResolutionTimeSpan left
HighResolutionTimeSpan right
Returns
Type Description
bool

operator >=(in HighResolutionTimeSpan, in HighResolutionTimeSpan)

Declaration
public static bool operator >=(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Type Name Description
HighResolutionTimeSpan left
HighResolutionTimeSpan right
Returns
Type Description
bool

operator !=(in HighResolutionTimeSpan, in HighResolutionTimeSpan)

Declaration
public static bool operator !=(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Type Name Description
HighResolutionTimeSpan left
HighResolutionTimeSpan right
Returns
Type Description
bool

operator <(in HighResolutionTimeSpan, in HighResolutionTimeSpan)

Declaration
public static bool operator <(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Type Name Description
HighResolutionTimeSpan left
HighResolutionTimeSpan right
Returns
Type Description
bool

operator <=(in HighResolutionTimeSpan, in HighResolutionTimeSpan)

Declaration
public static bool operator <=(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Type Name Description
HighResolutionTimeSpan left
HighResolutionTimeSpan right
Returns
Type Description
bool

operator -(in HighResolutionTimeSpan, in HighResolutionTimeSpan)

Declaration
public static HighResolutionTimeSpan operator -(in HighResolutionTimeSpan left, in HighResolutionTimeSpan right)
Parameters
Type Name Description
HighResolutionTimeSpan left
HighResolutionTimeSpan right
Returns
Type Description
HighResolutionTimeSpan

operator -(in HighResolutionTimeSpan)

Declaration
public static HighResolutionTimeSpan operator -(in HighResolutionTimeSpan value)
Parameters
Type Name Description
HighResolutionTimeSpan value
Returns
Type Description
HighResolutionTimeSpan

Implements

IEquatable<T>
In this article
Back to top Copyright © Onix Solutions.
Generated by DocFX