Zum Inhalt springen
Deutsch

SystemClock

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Defined in: src/Clock.ts:42

The wall clock, for everything that is not a test.

Exists so a component can take a Clock without every production call site having to write { now: () => Date.now() }, and so the default is a named thing that shows up in a stack rather than an anonymous literal.

new SystemClock(): SystemClock

SystemClock

now(): number

Defined in: src/Clock.ts:43

Milliseconds since the Unix epoch.

number

Clock.now