MeasurePause Function

Action

Pauses a custom time measure until the MeasureResume function is called, and returns the current value of the time measure.

Include file

Kernel.bdh

Syntax

MeasurePause( in sMeasure : string ): number;

Return value

Current value of the custom time measure in 1/1000 secs.

Parameter Description
sMeasure Measure name identifying the custom time measure to pause

Example

dcltrans
  transaction TMain
  var
    fValue : float;
    nTime : number;
  begin
    MeasureStart("TimeMeasure");
    wait 1.0;
    MeasurePause("TimeMeasure");
    wait 2.0;
    MeasureResume("TimeMeasure");
    wait 3.0;
    nTime := MeasureStop("TimeMeasure");
    MeasureGet("TimeMeasure", MEASURE_TIMER_RESPONSETIME,
    MEASURE_KIND_SUM, fValue);
    write("time = "); write(nTime); writeln;
    write("value = "); write(fValue); writeln;
  end TMain;