Share this page

# lr.think_time

Pauses execution between commands in a script.

    void lr.think_time( double thinkTime  );

Runtime Functions | Java Syntax

## Arguments

Name | Comments
--- | ---
thinkTime | The length of the pause, in seconds.

lr_think_time allows you to pause test execution during a run. This is especially useful in simulating think time, the time a real user pauses to think between actions.

When using cross-step downloads or asynchronous functions of any kind, a long think time may cause the download to time out.

## Return Values

No value is returned.

## Parameterization

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

## Example

In the following segment, lr.think_time instructs the script to pause for 5 seconds before printing the Vuser ID.

Copy code

    int vuser_id;
    vuser_id = lr.get_vuser_id( );
    lr.think_time(5);
    lr.message(vuser_id);

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: