package NET.worlds.network; import NET.worlds.core.Std; public class Timer { int _startTime; String _msg; public Timer(String msg) { this._msg = msg; this._startTime = Std.getRealTime(); } public void stop(int minDur) { int endTime = Std.getRealTime(); int duration = endTime - this._startTime; if (duration > minDur) { System.out.println(this._msg + ": " + duration + "ms"); } } }