mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
Add tick times API
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user