GetThinkTimeLimit Function

Action

Gets the value of the setting which specifies whether think times should be limited to a certain maximum value. If a think time is specified, which is longer than the specified think time limit, the limit duration is taken instead.

Include file

Kernel.bdh

Syntax

GetThinkTimeLimit( out fLimit : float optional ): boolean;

Return value

  • true if a think time limit is set for the virtual user

  • false otherwise

Parameter Description
fLimit Think time limit in seconds, which is never exceeded, if the function returns true (optional).

Example

dcltrans
  transaction TMain
  var
    fLimit : float;
  begin
    SetThinkTimeLimit(true, 2.0);
    
    if GetThinkTimeLimit(fLimit) then
      writeln("Think times are limited to " + string(fLimit) +
                 "seconds.")
    else
      writeln("No think time limit is set for the current"
                "virtual user.");
    end
  end TMain;