GetThinkTimeFactor Function

Action

Think time factors can be defined to manipulate think times on a global basis. When enabled, factors are multiplied to all think times that are included in scripts. The GetThinkTimeFactor function retrieves the active think time factor.

Include file

kernel.bdh

Syntax

GetThinkTimeFactor( out fThinkTimefactor : float optional ): boolean;

Return value

  • true if think time adaptation using the think time factor is enabled

  • false otherwise

Parameter Description
fThinkTimefactor The float variable that will receive the currently defined think time factor.

Example

dcltrans
  transaction TmyTrans1
  var
    fTTF : float;
  begin
    SetThinkTimeFactor(true, 1.2);

    ThinkTime(1.0);

    if GetThinkTimeFactor(fTTF) then
      Print("Think Time Factor: " + string(fTTF));
    end;
    ThinkTime(1.0);
  end TmyTrans1;

Output

Think Time Factor: 1.2