mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-23 21:49:42 +00:00
Both block & ent update profiling are broken right now because it is per world.
24 lines
608 B
Java
24 lines
608 B
Java
package mcp.mobius.opis.data.server;
|
|
|
|
import mcp.mobius.mobiuscore.profiler.IProfilerEntUpdate;
|
|
import mcp.mobius.opis.data.holders.stats.StatsBase;
|
|
|
|
public class EntUpdateProfiler extends AbstractProfiler implements IProfilerEntUpdate {
|
|
|
|
private static EntUpdateProfiler _instance = new EntUpdateProfiler();
|
|
public static EntUpdateProfiler instance() {return _instance;}
|
|
public StatsBase stats = new StatsBase();
|
|
|
|
@Override
|
|
public void EntUpdateStart() {
|
|
this.clock.start();
|
|
}
|
|
|
|
@Override
|
|
public void EntUpdateEnd() {
|
|
this.clock.stop();
|
|
this.stats.addMeasure(this.clock.timeDelta);
|
|
}
|
|
|
|
}
|