diff options
Diffstat (limited to 'spark-common/src/main/java/me/lucko/spark/profiler')
| -rw-r--r-- | spark-common/src/main/java/me/lucko/spark/profiler/TickCounter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/profiler/TickCounter.java b/spark-common/src/main/java/me/lucko/spark/profiler/TickCounter.java index ac804f8..31d7f9a 100644 --- a/spark-common/src/main/java/me/lucko/spark/profiler/TickCounter.java +++ b/spark-common/src/main/java/me/lucko/spark/profiler/TickCounter.java @@ -23,7 +23,7 @@ package me.lucko.spark.profiler; /** * A hook with the game's "tick loop". */ -public interface TickCounter { +public interface TickCounter extends AutoCloseable { /** * Starts the counter @@ -33,6 +33,7 @@ public interface TickCounter { /** * Stops the counter */ + @Override void close(); /** |
