mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Revise StopWatch for flexible time units in nanosecond precision
Closes gh-25803
This commit is contained in:
+4
-4
@@ -117,7 +117,7 @@ class BenchmarkTests {
|
||||
sw.stop();
|
||||
// System.out.println(sw.prettyPrint());
|
||||
ac.close();
|
||||
return sw.getLastTaskTimeMillis();
|
||||
return sw.getTotalTimeMillis();
|
||||
}
|
||||
|
||||
private long testBeforeAdviceWithoutJoinPoint(String file, int howmany, String technology) {
|
||||
@@ -139,7 +139,7 @@ class BenchmarkTests {
|
||||
sw.stop();
|
||||
// System.out.println(sw.prettyPrint());
|
||||
ac.close();
|
||||
return sw.getLastTaskTimeMillis();
|
||||
return sw.getTotalTimeMillis();
|
||||
}
|
||||
|
||||
private long testAfterReturningAdviceWithoutJoinPoint(String file, int howmany, String technology) {
|
||||
@@ -162,7 +162,7 @@ class BenchmarkTests {
|
||||
sw.stop();
|
||||
// System.out.println(sw.prettyPrint());
|
||||
ac.close();
|
||||
return sw.getLastTaskTimeMillis();
|
||||
return sw.getTotalTimeMillis();
|
||||
}
|
||||
|
||||
private long testMix(String file, int howmany, String technology) {
|
||||
@@ -191,7 +191,7 @@ class BenchmarkTests {
|
||||
sw.stop();
|
||||
// System.out.println(sw.prettyPrint());
|
||||
ac.close();
|
||||
return sw.getLastTaskTimeMillis();
|
||||
return sw.getTotalTimeMillis();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user