package org.nybatis.core.util;

public class StopWatcher {

	private long initTime = System.nanoTime();

	public long elapsedNanoSeconds() {
		return System.nanoTime() - initTime;
	}

	public long elapsedMiliSeconds() {
		return elapsedNanoSeconds() / 1_000_000;
	}

	public double elapsedSeconds() {
		return elapsedNanoSeconds() / 1_000_000_000.0;
	}

	public void reset() {
	    initTime = System.nanoTime();
	}
}

@@ -359,12 +359,19 @@
 lic 
-void
+StopWatcher
  res
@@ -412,13 +412,31 @@
 Time();%0A
+%09    return this;%0A
 %09%7D%0A%7D%0A

return self instance at StopWatcher.reset.