Skip to content

subtractDurationChecked

subtractDurationChecked(x, y): bigint

subtractDurationChecked performs subtraction with overflow detection of two durations in nanoseconds.

If the operation fails due to overflow the error is thrown.

bigint

bigint

bigint