aboutsummaryrefslogtreecommitdiff
path: root/spark-api/src/main/java/me/lucko/spark
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2023-03-19 19:35:29 +0000
committerLuck <git@lucko.me>2023-03-19 19:35:29 +0000
commita70ccb394839c63f13b3e6ff5539c0a042925d2f (patch)
tree400f3a80ec19238831f5994b319cdbf4e168f1f3 /spark-api/src/main/java/me/lucko/spark
parent6cdd78a0c57d751d3a44b319703c20b034f8d675 (diff)
downloadspark-a70ccb394839c63f13b3e6ff5539c0a042925d2f.tar.gz
spark-a70ccb394839c63f13b3e6ff5539c0a042925d2f.tar.bz2
spark-a70ccb394839c63f13b3e6ff5539c0a042925d2f.zip
Allow platforms to provide their own TPS/MSPT calculations
Diffstat (limited to 'spark-api/src/main/java/me/lucko/spark')
-rw-r--r--spark-api/src/main/java/me/lucko/spark/api/statistic/StatisticWindow.java3
1 files changed, 2 insertions, 1 deletions
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;