TCA.transactionDuration

Returns the duration (in seconds) of a specific transaction.

TCA.transactionDuration(name);

Note: This API must be used within the scope of the transaction.

Arguments

name. (string) The name of the transaction.

Return value

A promise that will be fulfilled with a string, which is the duration of a specific transaction, in seconds.