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.
Parameters
Section titled “Parameters”The source anchor.
The target anchor.
The successor’s duration mode.
options
Section titled “options”Pick<ResolvedModelOptions, "calendar" | "granularity">
Calendar and granularity of the model.
Returns
Section titled “Returns”number
The lag in milliseconds; negative when to lies before from.