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
A promise that is fulfilled with a number upon success. Returns the duration of the transaction.
Example
(async ()=>{
let duration = await TC.transactionDuration("transactionName");
})();