package mightypork.utils.math.timing; import mightypork.utils.Support; public class Profiler { public static long begin() { return System.currentTimeMillis(); } public static double end(long begun) { return endLong(begun) / 1000D; } public static long endLong(long begun) { return System.currentTimeMillis() - begun; } public static String endStr(long begun) { return Support.str(end(begun)) + " s"; } }