API reference

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

C

classTimer

@codexo/exojs / core / stable

Clock variant with a fixed limit. Inherits start/stop/reset/restart semantics; adds Timer.expired (true once `elapsedTime >= limit`) and remaining-time accessors. Useful for cooldowns, delays, and any timed gating logic where you want to ask "is the duration up?" each frame.

12
props
5
methods
0
events
Import
import { Timer } from '@codexo/exojs'

Clock variant with a fixed limit. Inherits start/stop/reset/restart semantics; adds Timer.expired (true once `elapsedTime >= limit`) and remaining-time accessors. Useful for cooldowns, delays, and any timed gating logic where you want to ask "is the duration up?" each frame.

Constructors 1
new(limit: Time, autoStart: boolean): Timer
Methods 5
destroy(): void
reset(): this
restart(): this
start(): this
stop(): this
Properties 12
elapsedHours: number
elapsedMilliseconds: number
elapsedMinutes: number
elapsedSeconds: number
elapsedTime: Time
expired: boolean
limit: Time
remainingHours: number
remainingMilliseconds: number
remainingMinutes: number
remainingSeconds: number
running: boolean
Source