ClockSample class

A wall-clock reading paired with a monotonic, boot/process-relative reading taken at the same instant — see TrustedClockService for why TrustedClockService.nowMsTrusted needs both together, not just one.

Constructors

ClockSample({required int wallMs, required int monotonicMs})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
monotonicMs → int
A reading that only ever increases while THIS process is alive (e.g. Stopwatch.elapsedMilliseconds), and resets to (near) 0 on a fresh process start. Immune to the user changing the wall clock.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
wallMs → int
DateTime.now()-based reading, in UTC epoch milliseconds — can jump arbitrarily (user-editable, NTP correction, timezone change).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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