Added profiler for the World Tick inside MinecraftServer.

This commit is contained in:
ProfMobius committed 2014-03-20 15:16:23 +01:00
1 parent a76a19425e
commit cf2ef06862
16 files changed
+175 -80

No files matched your search

@@ -0,0 +1,13 @@
package mcp.mobius.opis.data.server;
public class AbstractProfiler {
public class Clock{
public long startTime = 0;
public long timeDelta = 0;
public void start(){this.startTime = System.nanoTime();}
public void stop(){this.timeDelta = System.nanoTime() - this.startTime;}
}
protected Clock clock = new Clock();
}