Creates the clock.
The wall time at monotonic zero, Unix milliseconds.
The number of tasks currently waiting in sleep.
Returns the milliseconds advanced since the start.
Returns the fake wall time, Unix milliseconds.
Waits until the clock has advanced by ms.
The wait; zero or negative yields once.
Optionalsignal: AbortSignalOptional abort signal; an abort rejects with its reason.
A clock that moves only when a test calls FakeClock.advance.
nowstarts atstart(Unix milliseconds, default 2026-01-01T00:00:00Z) andmonotonicat zero;sleepwaits untiladvancepasses its deadline, andadvancewakes sleepers in deadline order, letting each woken task run before the time moves on.Example