Share this page

# 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

Copy code

    (async ()=>{
        let duration = await TC.transactionDuration("transactionName");
    })();

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: