Class ForgeTimings<T>

java.lang.Object
net.minecraftforge.server.timings.ForgeTimings<T>
Type Parameters:
T -

public class ForgeTimings<T> extends Object
ForgeTimings aggregates timings data collected by TimeTracker for an Object and performs operations for interpretation of the data.
  • Field Details

    • object

      private WeakReference<T> object
    • rawTimingData

      private int[] rawTimingData
  • Constructor Details

    • ForgeTimings

      public ForgeTimings(T object, int[] rawTimingData)
  • Method Details

    • getObject

      public WeakReference<T> getObject()
      Retrieves the object that the timings are for
      Returns:
      The object
    • getAverageTimings

      public double getAverageTimings()
      Averages the raw timings data collected
      Returns:
      An average of the raw timing data