Utility Functions and C Language Reference > Utility Functions: Scripting Languages (lr.) > Alphabetical Listing > lr.get_transaction_think_time

lr.get_transaction_think_time

Returns the think time of a transaction.

JavaScript

function lr.get_transaction_think_time(  transaction  )

VBScript

Function lr.get_transaction_think_time(  transaction  )
Example: lr.get_transaction_think_time Transaction Functions

Arguments

Name Comments
transaction The transaction name .

The lr.get_transaction_think_time function returns the think time of the specified transaction until this point. It returns values greater than zero only for open transactions.

To determine other transaction statistics, such as think time and wasted time, use the appropriate Transaction Functions.

Return Values

On success, returns the transaction think time. On failure, returns a negative number. If the transaction already ended or if data is not available for the specified transaction, returns 0.

Parameterization

Standard parameterization is not available for this function.