Skip to content

Commit

Permalink
Revise StopWatch for flexible time units in nanosecond precision
Browse files Browse the repository at this point in the history
Closes gh-25803
  • Loading branch information
jhoeller committed Aug 7, 2023
1 parent dedb58f commit 8e16e5e
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 105 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private long testRepeatedAroundAdviceInvocations(String file, int howmany, Strin
sw.stop();
// System.out.println(sw.prettyPrint());
ac.close();
return sw.getLastTaskTimeMillis();
return sw.getTotalTimeMillis();
}

private long testBeforeAdviceWithoutJoinPoint(String file, int howmany, String technology) {
Expand All @@ -139,7 +139,7 @@ private long testBeforeAdviceWithoutJoinPoint(String file, int howmany, String t
sw.stop();
// System.out.println(sw.prettyPrint());
ac.close();
return sw.getLastTaskTimeMillis();
return sw.getTotalTimeMillis();
}

private long testAfterReturningAdviceWithoutJoinPoint(String file, int howmany, String technology) {
Expand All @@ -162,7 +162,7 @@ private long testAfterReturningAdviceWithoutJoinPoint(String file, int howmany,
sw.stop();
// System.out.println(sw.prettyPrint());
ac.close();
return sw.getLastTaskTimeMillis();
return sw.getTotalTimeMillis();
}

private long testMix(String file, int howmany, String technology) {
Expand Down Expand Up @@ -191,7 +191,7 @@ private long testMix(String file, int howmany, String technology) {
sw.stop();
// System.out.println(sw.prettyPrint());
ac.close();
return sw.getLastTaskTimeMillis();
return sw.getTotalTimeMillis();
}

}
Expand Down

0 comments on commit 8e16e5e

Please sign in to comment.