<PackageReference Include="System.Reactive" Version="4.2.2" />

TimeInterval<T>

public struct TimeInterval<T> : IEquatable<TimeInterval<T>>
Represents a value associated with time interval information. The time interval can represent the time it took to produce the value, the interval relative to a previous value, the value's delivery time relative to a base, etc.
public TimeSpan Interval { get; }

Gets the interval.

public T Value { get; }

Gets the value.

public TimeInterval(T value, TimeSpan interval)

Constructs a time interval value.

public static bool op_Equality(TimeInterval<T> first, TimeInterval<T> second)

Determines whether the two specified TimeInterval<T> values have the same Value and Interval.

public static bool op_Inequality(TimeInterval<T> first, TimeInterval<T> second)

Determines whether the two specified TimeInterval<T> values don't have the same Value and Interval.

public bool Equals(TimeInterval<T> other)

Determines whether the current TimeInterval<T> value has the same Value and Interval as a specified TimeInterval<T> value.