TC.transactionDuration

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

TC.transactionDuration(name);

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

Arguments

name. (string) The name of the transaction.

Return value

Returns the duration of the transaction, in seconds.