Example: lr.get_transaction_think_time

In the following example, the lr.get_transaction_think_time function gets the think time and sends it to the Output window.

double think_time;
lr.start_transaction ("Flight");
web.url("home;sz=234x60;tile=1;ord=977672495775323400",
        "URL=http://ad.doubleclick.net/...ord=977672495775323400",
        ...
        "Mode=URL",
        LAST );
think_time=lr.get_transaction_think_time("Flight");
status = web.submit_data("flight",
        "Action=http://www.Web-tours.com/cgi-bin/tours?ITN_RESPONSE+",
        "Method=POST",
        "TargetFrame=",
        ...        
        LAST );
 // End transaction with operation result - pass or fail 
if (status == 0)
    lr.end_transaction("Flight", LR_PASS);
else
    lr.end_transaction("Flight", LR_FAIL);
if (think_time)
    lr.output_message("The transaction think time is %f seconds", think_time);
else
    lr.output_message("The think time cannot be determined.");