Struct Timestamped<T>
Represents a timestamped payload value.
public readonly struct Timestamped<T> : IEquatable<Timestamped<T>>
Type Parameters
T
The type of the value in the timestamped payload.
- Implements
- Inherited Members
Constructors
- Timestamped(T, double)
Initializes a new instance of the Timestamped<T> class with the specified payload value and timestamp.
Properties
- Seconds
Gets the timestamp of the payload, in fractional seconds.
- Value
Gets the value of the timestamped payload.
Methods
- Deconstruct(out T, out double)
Deconstructs the components of a timestamped payload into separate variables.
- Equals(Timestamped<T>)
Returns a value indicating whether this instance has the same value and timestamp as a specified Timestamped<T> structure.
- Equals(object)
Tests to see whether the specified object is an Timestamped<T> structure with the same value and timestamp as this Timestamped<T> structure.
- GetHashCode()
Returns a hash code for this Timestamped<T> structure.
- ToString()
Creates a string representation of this Timestamped<T> structure.
Operators
- operator ==(Timestamped<T>, Timestamped<T>)
Tests whether two Timestamped<T> structures are equal.
- operator !=(Timestamped<T>, Timestamped<T>)
Tests whether two Timestamped<T> structures are different.