Hi,
As Function Reference of Vugen - "The lr_get_transaction_duration function returns the duration in seconds of the specified transaction to this point. You use this function to determine the total transaction time before the transaction has ended".
So you should place 'lr_get_transaction_duration' function inside the transaction.
double trans_time, wait_time;
lr_start_transaction("test");
lr_think_time(2);
web_url("..",
"URL=....................",
...............
LAST);
lr_think_time(5);
trans_time =lr_get_transaction_duration("test");
lr_end_transaction("test",LR_AUTO);
Regards,
Chau Nguyen