MeasureSetTimer Function

Action

Sets the value of a timer identified by sName. When this function is called for a specified timer for the first time, the counter is automatically allocated and initialized.

Include file

Kernel.bdh

Syntax

MeasureSetTimer( in sName  : string,
                 in nValue : number): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sName Name of the timer concerned with the measurement.
nValue Value to set. In milliseconds.

Example

dcltrans
  transaction TMain
  var
    fValue : float;
  begin
    MeasureSetTimer("TimeMeasure", 2000);
    ...
    MeasureGet("TimeMeasure", MEASURE_TIMER_RESPONSETIME,
               MEASURE_KIND_SUM, fValue);
    Print("Val: " + string(fValue));
  end TMain;