API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceTimeSource

@codexo/exojs / core / stable

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.

0
props
1
methods
0
events
Import
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.

Methods1
now(): number
Milliseconds elapsed since this source's own origin.
Source