From a70ccb394839c63f13b3e6ff5539c0a042925d2f Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 19 Mar 2023 19:35:29 +0000 Subject: Allow platforms to provide their own TPS/MSPT calculations --- .../src/main/java/me/lucko/spark/api/statistic/StatisticWindow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spark-api/src/main/java/me/lucko/spark') diff --git a/spark-api/src/main/java/me/lucko/spark/api/statistic/StatisticWindow.java b/spark-api/src/main/java/me/lucko/spark/api/statistic/StatisticWindow.java index cdf4d01..cdaa2b8 100644 --- a/spark-api/src/main/java/me/lucko/spark/api/statistic/StatisticWindow.java +++ b/spark-api/src/main/java/me/lucko/spark/api/statistic/StatisticWindow.java @@ -92,7 +92,8 @@ public interface StatisticWindow { enum MillisPerTick implements StatisticWindow { SECONDS_10(Duration.ofSeconds(10)), - MINUTES_1(Duration.ofMinutes(1)); + MINUTES_1(Duration.ofMinutes(1)), + MINUTES_5(Duration.ofMinutes(5)); private final Duration value; -- cgit