Skip to content

measureLag

measureLag(from, to, mode, options): number

Defined in: core/src/schedule/graph.ts:178

Measures the gap between two moments as a lag counted in mode: working time of the calendar (signed) or plain time, aligned to the nearest multiple of the granularity.

DateTimeMs

The source anchor.

DateTimeMs

The target anchor.

DurationMode

The successor’s duration mode.

Pick<ResolvedModelOptions, "calendar" | "granularity">

Calendar and granularity of the model.

number

The lag in milliseconds; negative when to lies before from.