Skip to content

Commit

Permalink
Added getElapsedInMilli()
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Jan 2, 2017
1 parent 35f9113 commit 42f8f42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jpos/src/main/java/org/jpos/util/Profiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 42f8f42

Please sign in to comment.