/*
 *
 * Copyright (C) 2016 Ruediger Gad
 *
 * This software is released under the terms of the Eclipse Public License 
 * (EPL) 1.0. You can find a copy of the EPL at: 
 * http://opensource.org/licenses/eclipse-1.0.php
 *
 */

package dsbdp;

/**
 * This is a simple probe for measuring latency.
 */
public class LatencyProbe {

    private long startTime;
    private long endTime;

    public LatencyProbe() {
        this.startTime = System.nanoTime();
    }

    public void done() {
        this.endTime = System.nanoTime();
    }

    public long getDelta() {
        return this.endTime - this.startTime;
    }

}


@@ -331,24 +331,61 @@
     private 
+final Object data;%0A    private final 
 long startTi
@@ -439,24 +439,116 @@
 cyProbe() %7B%0A
+        this(null);%0A    %7D%0A%0A    public LatencyProbe(Object data) %7B%0A        this.data = data;%0A
         this
@@ -652,32 +652,95 @@
 oTime();%0A    %7D%0A%0A
+    public Object getData() %7B%0A        return this.data;%0A    %7D%0A%0A
     public long 

Add capability to LatencyProbe to wrap arbitrary data.