Files
Opis/mcp/mobius/opis/data/server/EntUpdateProfiler.java
T
ProfMobius 5235f61f83 Added a total entity update time.
Both block & ent update profiling are broken right now because it is per world.
2014-03-20 15:47:22 +01:00

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);
}
}