SetThinkTimeLimit Function

Action

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

SetThinkTimeLimit( in bEnable: boolean,
                   in fLimit : float optional);
Parameter Description
bEnable Specifies whether a think time limit should be activated.
fLimit Think time limit in seconds, which is never exceeded, if bEnable is 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;