Class ForgeTimings<T>
- java.lang.Object
-
- net.minecraftforge.server.timings.ForgeTimings<T>
-
- Type Parameters:
T
-
public class ForgeTimings<T> extends java.lang.Object
ForgeTimings aggregates timings data collected byTimeTracker
for an Object and performs operations for interpretation of the data.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ref.WeakReference<T>
object
private int[]
rawTimingData
-
Constructor Summary
Constructors Constructor Description ForgeTimings(T object, int[] rawTimingData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAverageTimings()
Averages the raw timings data collectedjava.lang.ref.WeakReference<T>
getObject()
Retrieves the object that the timings are for
-
-
-
Field Detail
-
object
private java.lang.ref.WeakReference<T> object
-
rawTimingData
private int[] rawTimingData
-
-
Constructor Detail
-
ForgeTimings
public ForgeTimings(T object, int[] rawTimingData)
-
-
Method Detail
-
getObject
public java.lang.ref.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
-
-