pub trait Clock: Send + Sync + 'static { // Required methods fn now(&self) -> Instant; fn unix_ms(&self) -> i64; }
Abstraction over time sources, enabling deterministic testing.
Returns a monotonic instant for freshness / elapsed-time checks.
Returns wall-clock time as Unix milliseconds (for incarnation generation).