Skip to content

addDurationChecked

addDurationChecked(x, y): bigint

addDurationChecked performs addition with overflow detection of two durations in nanoseconds.

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

bigint

bigint

bigint