Skip to content

negateDurationChecked

negateDurationChecked(x): bigint

negateDurationChecked performs negation with overflow detection of a duration in nanoseconds.

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

bigint

bigint