Share this page

# lr.get_transaction_think_time

Returns the think time of a transaction.

## C#

    double lr.get_transaction_think_time( String transaction );

## VB.NET

    Function lr.get_transaction_think_time( ByVal transaction As String   ) as Double

Alphabetical Listing

## 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.

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

## Return Values

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

## Parameterization

Standard parameterization is not available for this function.

## Example

The following example retrieves the Login transaction's think time and sends it to the output.

Copy code

    double thinktime=lr.get_transaction_think_time("Login");
    lr.output_message("Think time of the Login is "+thinktime+" seconds");

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