TimedValue<T> class

Represents a value associated with a specific point in time (timestamp).

This class encapsulates a data point value of type T and the Duration (timestamp) at which it was recorded or became valid. It serves as a basic building block for time-series data.

While similar in structure to TraceEvent, TimedValue is intended for more general use cases where a value-timestamp pair is needed without the context or constraints of being part of a formal Trace (like strict timestamp monotonicity).

The timestamp typically represents the duration since a reference point or epoch (e.g., application start, simulation start).

This class is immutable.

Annotations

Constructors

TimedValue(T value, Duration timestamp)
Creates an immutable TimedValue instance.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp Duration
The time at which the value was recorded or became valid.
final
value → T
The value recorded at the timestamp.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Provides a compact string representation, e.g., (value @ 123ms) or (value @ 1.5s).
override

Operators

operator ==(Object other) bool
The equality operator.
override