Revise StopWatch for flexible time units in nanosecond precision

Closes gh-25803
This commit is contained in:
Juergen Hoeller
2023-08-08 01:48:58 +02:00
parent dedb58f7ed
commit 8e16e5ea35
3 changed files with 171 additions and 119 deletions

View File

@@ -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();
}
}