mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-18 19:39:10 +00:00
Removed display of global ent update (was profiling the profiler).
Added priviliged user list.
This commit is contained in:
1 parent
5235f61f83
commit
aadf0f736f
11 files changed
+305
-264
No files matched your search
@@ -1,23 +1,24 @@
|
||||
package mcp.mobius.opis.data.server;
|
||||
|
||||
import mcp.mobius.mobiuscore.profiler.IProfilerEntUpdate;
|
||||
import mcp.mobius.opis.data.holders.stats.StatsBase;
|
||||
import mcp.mobius.opis.data.holders.stats.StatsWorld;
|
||||
import mcp.mobius.opis.data.managers.GlobalTimingManager;
|
||||
|
||||
public class EntUpdateProfiler extends AbstractProfiler implements IProfilerEntUpdate {
|
||||
|
||||
private static EntUpdateProfiler _instance = new EntUpdateProfiler();
|
||||
public static EntUpdateProfiler instance() {return _instance;}
|
||||
public StatsBase stats = new StatsBase();
|
||||
//private static EntUpdateProfiler _instance = new EntUpdateProfiler();
|
||||
//public static EntUpdateProfiler instance() {return _instance;}
|
||||
//public StatsBase stats = new StatsBase();
|
||||
|
||||
@Override
|
||||
public void EntUpdateStart() {
|
||||
public void EntUpdateStart(int id) {
|
||||
this.clock.start();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void EntUpdateEnd() {
|
||||
public void EntUpdateEnd(int id) {
|
||||
this.clock.stop();
|
||||
this.stats.addMeasure(this.clock.timeDelta);
|
||||
GlobalTimingManager.addEntUpdateStat(id, this.clock.timeDelta);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user