mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-21 20:52:14 +00:00
14 lines
341 B
Java
14 lines
341 B
Java
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();
|
|
|
|
}
|