mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-28 07:55:49 +00:00
Added profiler for the World Tick inside MinecraftServer.
This commit is contained in:
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();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user