Struct HighResolutionTimestamp
Assembly: OnixS.Fix.Engine.dll
Syntax
public struct HighResolutionTimestamp : IEquatable<HighResolutionTimestamp>
Constructors
HighResolutionTimestamp(DateTime, ulong)
Declaration
public HighResolutionTimestamp(DateTime timestamp, ulong picoseconds)
Parameters
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
Milliseconds
Subsecond part of timestamp
Declaration
public ulong Milliseconds { get; }
Property Value
Nanoseconds
Subsecond part of timestamp
Declaration
public ulong Nanoseconds { get; }
Property Value
Now
Declaration
public static HighResolutionTimestamp Now { get; }
Property Value
Picoseconds
Subsecond part of timestamp
Declaration
public readonly ulong Picoseconds { get; }
Property Value
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
UtcNow
Declaration
public static HighResolutionTimestamp UtcNow { get; }
Property Value
Methods
Equals(HighResolutionTimestamp)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(HighResolutionTimestamp 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
ToDateTime()
Rounded high-resolution value to standard DateTime resolution
Declaration
public DateTime ToDateTime()
Returns
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
Operators
operator +(in HighResolutionTimestamp, in HighResolutionTimeSpan)
Declaration
public static HighResolutionTimestamp operator +(in HighResolutionTimestamp left, in HighResolutionTimeSpan right)
Parameters
Returns
operator ==(in HighResolutionTimestamp, in HighResolutionTimestamp)
Declaration
public static bool operator ==(in HighResolutionTimestamp left, in HighResolutionTimestamp right)
Parameters
Returns
operator >(in HighResolutionTimestamp, in HighResolutionTimestamp)
Declaration
public static bool operator >(in HighResolutionTimestamp left, in HighResolutionTimestamp right)
Parameters
Returns
operator >=(in HighResolutionTimestamp, in HighResolutionTimestamp)
Declaration
public static bool operator >=(in HighResolutionTimestamp left, in HighResolutionTimestamp right)
Parameters
Returns
operator !=(in HighResolutionTimestamp, in HighResolutionTimestamp)
Declaration
public static bool operator !=(in HighResolutionTimestamp left, in HighResolutionTimestamp right)
Parameters
Returns
operator <(in HighResolutionTimestamp, HighResolutionTimestamp)
Declaration
public static bool operator <(in HighResolutionTimestamp left, HighResolutionTimestamp right)
Parameters
Returns
operator <=(in HighResolutionTimestamp, in HighResolutionTimestamp)
Declaration
public static bool operator <=(in HighResolutionTimestamp left, in HighResolutionTimestamp right)
Parameters
Returns
operator -(in HighResolutionTimestamp, in HighResolutionTimeSpan)
Declaration
public static HighResolutionTimestamp operator -(in HighResolutionTimestamp left, in HighResolutionTimeSpan right)
Parameters
Returns
Implements