← Standard library

Time

static class Time
import Time from Wax;

Frame timing driven by the host application through BeginFrame.

DeltaTime measures the previous frame interval. Scale controls scaled time: zero pauses it, and two advances it twice as quickly. Now reads a monotonic, replay-safe timepoint. The value types timespan and timepoint need no import.

Time.wax:9

Inherits from object. Follow these links for inherited members.

Members

DeltaTimegetter

public static get DeltaTime() : timespan

The current frame interval after MaxDeltaTime clamping and before time scaling.

Time.wax:14

FrameCountgetter

public static get FrameCount() : int64

The runtime frame counter advanced by host frame boundaries.

Time.wax:21

ElapsedTimegetter

public static get ElapsedTime() : timespan

Accumulated frame intervals after MaxDeltaTime clamping and before time scaling.

Time.wax:28

Scalegetter

public static get Scale() : double

The multiplier used for scaled frame time. Must be finite; zero pauses scaled time and negative values run it backward.

Time.wax:36

Scalesetter

public static set Scale(double value) : void

The multiplier used for scaled frame time. Must be finite; zero pauses scaled time and negative values run it backward.

Time.wax:44

ScaledDeltaTimegetter

public static get ScaledDeltaTime() : timespan

The frame interval after the runtime delta limit and time scale are applied.

Time.wax:54

ScaledTimegetter

public static get ScaledTime() : timespan

Accumulated scaled frame time.

Time.wax:61

MaxDeltaTimegetter

public static get MaxDeltaTime() : timespan

The nonnegative frame-delta limit, applied before scaling. Zero disables clamping; negative assignments panic.

Time.wax:69

MaxDeltaTimesetter

public static set MaxDeltaTime(timespan value) : void

The nonnegative frame-delta limit, applied before scaling. Zero disables clamping; negative assignments panic.

Time.wax:77

Nowgetter

public static get Now() : timepoint

Reads a fresh monotonic, replay-safe clock sample. Subtract samples for elapsed durations; the origin is not wall-clock time.

Time.wax:90