package kg.apc.jmeter.perfmon;

import org.apache.jmeter.samplers.SampleResult;

/**
 *
 * @author APC
 */
public class PerfMonSampleResult
        extends SampleResult {

    private final long ts;

    public PerfMonSampleResult() {
        ts = System.currentTimeMillis();
        //setTimeStamp(ts);
        //setStartTime(ts);
    }

    // storing as latency, multiply by 1000 to keep floating precision
    public void setValue(double value) {
        setStampAndTime(ts, (int) (value * 1000));
        //setEndTime(ts + (int) (value * 1000));
    }

    public double getValue() {
        return ((double) getTime()) / 1000d;
    }
}

@@ -473,19 +473,20 @@
 me(ts, (
-int
+long
 ) (value

Fix possible integer limit problem (merge in trunk)