Utility Functions and C Language Reference > Utility Functions: C Language (lr_) > Alphabetical Listing > lr_get_transaction_wasted_time

lr_get_transaction_wasted_time

Returns the wasted time of a transaction by its name.

C Language

double lr_get_transaction_wasted_time( char *transaction );
Example: lr_wasted_time and lr_get_transaction_wasted_time Transaction Functions

Arguments

Name Comments
transaction The name of the transaction.

The lr_get_transaction_wasted_time function returns the Wasted Time in seconds of the specified transaction to this point.

The lr_get_transaction_wasted_time function 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

If this function succeeds, it returns the transaction wasted time in seconds. If it fails, it returns a negative number. If the transaction already ended or if data is not available for the specified transaction, it returns 0.

Parameterization

You cannot use standard parameterization for any arguments in this function.