DebugTimeMarker class final

Safe marker for deterministic test/replay clock progress.

The marker records a monotonic duration from a caller-owned clock, not a wall-clock timestamp. That keeps artifacts deterministic and avoids leaking host timing into replay-oriented tests.

Constructors

DebugTimeMarker({required String label, String? source, Duration elapsed = Duration.zero, int? sequence, bool fakeTime = true})
const
DebugTimeMarker.fromClock({required String label, required Clock clock, String? source, int? sequence, bool fakeTime = true})
factory

Properties

elapsed → Duration
final
fakeTime → bool
final
hashCode → int
The hash code for this object.
no setterinherited
label → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sequence → int?
final
source → String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited