콘텐츠로 이동
한국어

SystemClock

이 콘텐츠는 아직 번역되지 않았습니다.

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