public class TickTimeTracker extends Object
Modifier and Type | Field and Description |
---|---|
private ReadableProfiler |
profiler |
private IntSupplier |
tickGetter |
private LongSupplier |
timeGetter |
Constructor and Description |
---|
TickTimeTracker(LongSupplier timeGetter,
IntSupplier tickGetter) |
Modifier and Type | Method and Description |
---|---|
void |
disable() |
void |
enable() |
Profiler |
getProfiler() |
ProfileResult |
getResult() |
boolean |
isActive() |
private final LongSupplier timeGetter
private final IntSupplier tickGetter
private ReadableProfiler profiler
public TickTimeTracker(LongSupplier timeGetter, IntSupplier tickGetter)
public boolean isActive()
public void disable()
public void enable()
public Profiler getProfiler()
public ProfileResult getResult()