diff --git a/jpos/src/main/java/org/jpos/util/Profiler.java b/jpos/src/main/java/org/jpos/util/Profiler.java index 48fef42094..81ae1416c8 100644 --- a/jpos/src/main/java/org/jpos/util/Profiler.java +++ b/jpos/src/main/java/org/jpos/util/Profiler.java @@ -74,6 +74,9 @@ public synchronized void checkPoint (String detail) { public long getElapsed() { return System.nanoTime() - start; } + public long getElapsedInMillis() { + return getElapsed() / TO_MILLIS; + } /** * @return parcial elapsed time since last reset */