MeasureResume Function

Action

Restarts a custom time measure that was paused with the MeasurePause function. The time will be added to the time measured before the MeasurePause function was called.

Include file

Kernel.bdh

Syntax

MeasureResume( 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 resume

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;