Clock
Everything under Quiote\Support\Clock.
Classes
Section titled “Classes”| Class | Description |
|---|---|
Clock | Static facade over the process-wide clock, mirroring Config. |
FrozenClock | A clock that does not move except when told to: every read answers the wall-clock/monotonic values last set, however much real time elapses between two calls. |
OffsetClock | A clock that ticks in real time but reports a fixed offset from another clock — “the client’s clock is ten minutes fast”, “this node’s clock has * drifted 30 seconds behind the cluster”. |
SystemClock | The real clock: ClockInterface::now()/ClockInterface::unixTimestamp()/ ClockInterface::microtime() answer from the system wall clock exactly like new DateTimeImmutable()/time()/microtime(true) always did, and ClockInterface::monotonic() from hrtime(true). |
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
ClockInterface | The one seam every direct time()/microtime()/new DateTime() call site in core is meant to go through instead. |