Example: lr.get_transaction_duration

The following example retrieves the duration of the Setup and Login transactions and sends them to the output

double duration=lr.get_transaction_duration("Setup");

lr.output_message("Duration of the Setup transaction is "+duration+" seconds.");

 

duration=lr.get_transaction_duration("Login");

lr.output_message("Duration of the login is "+duration+" seconds.");

 

lr.think_time(3);