Class TPSCalculator

java.lang.Object
com.zenith.feature.tps.TPSCalculator

public class TPSCalculator extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    TPSCalculator(int tpsBufferSize)
    Instances of this class will never be garbage collected automatically If you want to dispose of it, you must unsubscribe it from the event bus manually
  • Method Summary

    Modifier and Type
    Method
    Description
     
    double
    Returns the current average server TPS as a double value in the range [0.0, 20.0].
    void
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TPSCalculator

      public TPSCalculator(int tpsBufferSize)
      Instances of this class will never be garbage collected automatically If you want to dispose of it, you must unsubscribe it from the event bus manually
  • Method Details

    • reset

      public void reset()
    • getTPS

      public String getTPS()
    • getTPSValue

      public double getTPSValue()
      Returns the current average server TPS as a double value in the range [0.0, 20.0]. Falls back to 20.0 when insufficient data has been collected yet.