aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main/java/me
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-10-22 03:01:11 +0800
committershedaniel <daniel@shedaniel.me>2021-10-22 03:01:11 +0800
commit3bed37b0855c6b64a2a537237a3fe4f522da437b (patch)
tree83be926f2e56ab6fb36cc816803e83245544c7c6 /runtime/src/main/java/me
parenta1b170394dc478e16fb748301b61bf57a6dcdccc (diff)
downloadRoughlyEnoughItems-3bed37b0855c6b64a2a537237a3fe4f522da437b.tar.gz
RoughlyEnoughItems-3bed37b0855c6b64a2a537237a3fe4f522da437b.tar.bz2
RoughlyEnoughItems-3bed37b0855c6b64a2a537237a3fe4f522da437b.zip
Fix Performance Analysis timings
Diffstat (limited to 'runtime/src/main/java/me')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/common/logging/performance/PerformanceLoggerImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/common/logging/performance/PerformanceLoggerImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/common/logging/performance/PerformanceLoggerImpl.java
index daae98b6b..934bf494e 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/common/logging/performance/PerformanceLoggerImpl.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/common/logging/performance/PerformanceLoggerImpl.java
@@ -76,6 +76,7 @@ public class PerformanceLoggerImpl implements PerformanceLogger {
public void close() {
stopwatch.stop();
totalTime += stopwatch.elapsed(TimeUnit.NANOSECONDS);
+ stopwatch.reset();
}
@Override