API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceTimeSource
A monotonic millisecond clock. Values are only meaningful relative to each other: the origin is the host's, never the wall clock, and the source never jumps backwards when the system clock is adjusted. This is the seam every runtime clock reads instead of a global `performance.now()`, which is what makes a deterministic time source possible in tests. PlatformAdapter is one, so an adapter can be handed straight to Clock.
import { TimeSource } from '@codexo/exojs'A monotonic millisecond clock. Values are only meaningful relative to each other: the origin is the host's, never the wall clock, and the source never jumps backwards when the system clock is adjusted.
This is the seam every runtime clock reads instead of a global `performance.now()`, which is what makes a deterministic time source possible in tests. PlatformAdapter is one, so an adapter can be handed straight to Clock.
now(): number