Class ObjectTimings<T>
java.lang.Object
net.neoforged.neoforge.server.timings.ObjectTimings<T>
- Type Parameters:
T
-
ObjectTimings aggregates timings data collected by
TimeTracker
for an Object
and performs operations for interpretation of the data.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Averages the raw timings data collectedRetrieves the object that the timings are for
-
Field Details
-
object
-
rawTimingData
private int[] rawTimingData
-
-
Constructor Details
-
ObjectTimings
-
-
Method Details
-
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
-