DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="3.0.0" />

 Timestamp

Represents timestamp.
public static Timestamp Current { get; }

Gets the current point in time.

public TimeSpan Elapsed { get; }

Gets precise difference between the current point in time and this timestamp.

public TimeSpan Value { get; }

Gets TimeSpan representing this timestamp.

public static bool op_Equality(Timestamp first, Timestamp second)

Determines whether the two timestamps are equal.

public static bool op_GreaterThan(Timestamp first, Timestamp second)

Determines whether the first timestamp is greater than the second.

public static bool op_GreaterThanOrEqual(Timestamp first, Timestamp second)

Determines whether the first timestamp is greater than or equal to the second.

public static TimeSpan op_Implicit(Timestamp stamp)

Gets TimeSpan representing the given timestamp.

public static bool op_Inequality(Timestamp first, Timestamp second)

Determines whether the two timestamps are equal.

public static bool op_LessThan(Timestamp first, Timestamp second)

Determines whether the first timestamp is less than the second.

public static bool op_LessThanOrEqual(Timestamp first, Timestamp second)

Determines whether the first timestamp is less than or equal to the second.

public static Timestamp VolatileRead(ref Timestamp location)

Reads the timestamp and prevents the processor from reordering memory operations.

public static void VolatileWrite(ref Timestamp location, Timestamp newValue)

Writes the timestamp and prevents the proces from reordering memory operations.

public int CompareTo(Timestamp other)

Compares this timestamp with the given value.

public bool Equals(Timestamp other)

Determines whether the current timestamp equals to the specified timestamp.