T
- public class TimeTracker<T>
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
static TimeTracker<Entity> |
ENTITY_UPDATE
A tracker for timing entity updates
|
static TimeTracker<TileEntity> |
TILE_ENTITY_UPDATE
A tracker for timing tile entity update
|
コンストラクタと説明 |
---|
TimeTracker() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
enable(int duration)
Starts recording tracking data for the given duration in seconds
|
com.google.common.collect.ImmutableList<ForgeTimings<T>> |
getTimingData()
Returns the timings data recorded by the tracker
|
void |
reset()
Resets the tracker (clears timings and stops any in-progress timings)
|
void |
trackEnd(T tracking)
Ends the timing of the currently tracking object
|
void |
trackStart(T toTrack)
Starts timing of the provided object
|
public static final TimeTracker<TileEntity> TILE_ENTITY_UPDATE
public static final TimeTracker<Entity> ENTITY_UPDATE
public com.google.common.collect.ImmutableList<ForgeTimings<T>> getTimingData()
public void reset()
public void trackEnd(T tracking)
tracking
- The object to stop timingpublic void enable(int duration)
duration
- The duration for the time to trackpublic void trackStart(T toTrack)
toTrack
- The object to start timing