Add tick times API

This commit is contained in:
William Blake Galbreath
2020-04-05 22:22:58 -05:00
parent 0ee773e88b
commit c0e42aed8a
2 changed files with 34 additions and 0 deletions

View File

@@ -1877,6 +1877,21 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
*/
@NotNull
public double[] getTPS();
/**
* Get a sample of the servers last tick times (in nanos)
*
* @return A sample of the servers last tick times (in nanos)
*/
@NotNull
long[] getTickTimes();
/**
* Get the average tick time (in millis)
*
* @return Average tick time (in millis)
*/
double getAverageTickTime();
// Paper end
// Paper start