• Version 1.15.2
Show / Hide Table of Contents

Struct HighResolutionTimestamp

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

Constructors

HighResolutionTimestamp(DateTime, ulong)

Declaration
public HighResolutionTimestamp(DateTime timestamp, ulong picoseconds)
Parameters
Type Name Description
DateTime timestamp
ulong picoseconds

Properties

Date

Gets the date component of this instance.

Declaration
public DateTime Date { get; }
Property Value
Type Description
DateTime

A new object with the same date as this instance, and the time value set to 12:00:00 midnight (00:00:00).

Microseconds

Subsecond part of timestamp

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

Milliseconds

Subsecond part of timestamp

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

Nanoseconds

Subsecond part of timestamp

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

Now

Declaration
public static HighResolutionTimestamp Now { get; }
Property Value
Type Description
HighResolutionTimestamp

Picoseconds

Subsecond part of timestamp

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

TimeOfDay

Gets the time of day for this instance.

Declaration
public HighResolutionTimeSpan TimeOfDay { get; }
Property Value
Type Description
HighResolutionTimeSpan

A time interval that represents the fraction of the day that has elapsed since midnight.

Timestamp

Second and above part of timestamp

Declaration
public readonly DateTime Timestamp { get; }
Property Value
Type Description
DateTime

UtcNow

Declaration
public static HighResolutionTimestamp UtcNow { get; }
Property Value
Type Description
HighResolutionTimestamp

Methods

Equals(HighResolutionTimestamp)

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

Declaration
public bool Equals(HighResolutionTimestamp other)
Parameters
Type Name Description
HighResolutionTimestamp 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()

ToDateTime()

Rounded high-resolution value to standard DateTime resolution

Declaration
public DateTime ToDateTime()
Returns
Type Description
DateTime

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()

Operators

operator +(in HighResolutionTimestamp, in HighResolutionTimeSpan)

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

operator ==(in HighResolutionTimestamp, in HighResolutionTimestamp)

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

operator >(in HighResolutionTimestamp, in HighResolutionTimestamp)

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

operator >=(in HighResolutionTimestamp, in HighResolutionTimestamp)

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

operator !=(in HighResolutionTimestamp, in HighResolutionTimestamp)

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

operator <(in HighResolutionTimestamp, HighResolutionTimestamp)

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

operator <=(in HighResolutionTimestamp, in HighResolutionTimestamp)

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

operator -(in HighResolutionTimestamp, in HighResolutionTimeSpan)

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

Implements

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