Struct HighResolutionTimestamp
Assembly: OnixS.Fix.Engine.dll
Syntax
public struct HighResolutionTimestamp : IEquatable<HighResolutionTimestamp>
Constructors
HighResolutionTimestamp(DateTime, UInt64)
Declaration
public HighResolutionTimestamp(DateTime timestamp, ulong picoseconds)
Parameters
Properties
Date
Gets the date component of this instance.
Declaration
public readonly 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 readonly ulong Microseconds { get; }
Property Value
Milliseconds
Subsecond part of timestamp
Declaration
public readonly ulong Milliseconds { get; }
Property Value
Nanoseconds
Subsecond part of timestamp
Declaration
public readonly ulong Nanoseconds { get; }
Property Value
Now
Declaration
public static readonly 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 readonly 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 readonly HighResolutionTimestamp UtcNow { get; }
Property Value
Methods
Equals(HighResolutionTimestamp)
Declaration
public bool Equals(HighResolutionTimestamp 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
ToDateTime()
Rounded high-resolution value to standard DateTime resolution
Declaration
public DateTime ToDateTime()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Addition(in HighResolutionTimestamp, in HighResolutionTimeSpan)
Declaration
public static HighResolutionTimestamp operator +(in HighResolutionTimestamp left, in HighResolutionTimeSpan right)
Parameters
Returns
Equality(in HighResolutionTimestamp, in HighResolutionTimestamp)
Declaration
public static bool operator ==(in HighResolutionTimestamp left, in HighResolutionTimestamp right)
Parameters
Returns
GreaterThan(in HighResolutionTimestamp, in HighResolutionTimestamp)
Declaration
public static bool operator>(in HighResolutionTimestamp left, in HighResolutionTimestamp right)
Parameters
Returns
GreaterThanOrEqual(in HighResolutionTimestamp, in HighResolutionTimestamp)
Declaration
public static bool operator >=(in HighResolutionTimestamp left, in HighResolutionTimestamp right)
Parameters
Returns
Inequality(in HighResolutionTimestamp, in HighResolutionTimestamp)
Declaration
public static bool operator !=(in HighResolutionTimestamp left, in HighResolutionTimestamp right)
Parameters
Returns
LessThan(in HighResolutionTimestamp, HighResolutionTimestamp)
Declaration
public static bool operator <(in HighResolutionTimestamp left, HighResolutionTimestamp right)
Parameters
Returns
LessThanOrEqual(in HighResolutionTimestamp, in HighResolutionTimestamp)
Declaration
public static bool operator <=(in HighResolutionTimestamp left, in HighResolutionTimestamp right)
Parameters
Returns
Subtraction(in HighResolutionTimestamp, in HighResolutionTimeSpan)
Declaration
public static HighResolutionTimestamp operator -(in HighResolutionTimestamp left, in HighResolutionTimeSpan right)
Parameters
Returns
Implements