diff --git a/.gitignore b/.gitignore index ae3c172..7bad9fe 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /bin/ +/src/pkg/deepCurse/nopalmo/core/TokenVault.java diff --git a/src/pkg/deepCurse/nopalmo/core/Boot.java b/src/pkg/deepCurse/nopalmo/core/Boot.java index 2d79cb2..eec22c8 100644 --- a/src/pkg/deepCurse/nopalmo/core/Boot.java +++ b/src/pkg/deepCurse/nopalmo/core/Boot.java @@ -1,11 +1,18 @@ package pkg.deepCurse.nopalmo.core; +import pkg.deepCurse.simpleLoggingGarbage.core.Log; + public class Boot { public static void main(String[] args) { + Log.boot("Booting. . ."); + + long preBootTime = System.currentTimeMillis(); - System.out.println("ech"); + + long bootTime = System.currentTimeMillis() - preBootTime; + } } diff --git a/src/pkg/deepCurse/simpleLoggingGarbage/core/Log.java b/src/pkg/deepCurse/simpleLoggingGarbage/core/Log.java new file mode 100644 index 0000000..e64f46c --- /dev/null +++ b/src/pkg/deepCurse/simpleLoggingGarbage/core/Log.java @@ -0,0 +1,25 @@ +package pkg.deepCurse.simpleLoggingGarbage.core; + +/** + * this class exists for the sole reason of im lazy, as far as i know, this is + * really bad practice and i will replace it at some point, or at least upgrade + * it, who knows really + * + * @author deepCurse + */ +public class Log { + + public static int loggerLevel = 0; + + //@formatter:off + public static boolean bootEnabled = true; + public static void boot(String text) { + boot(text,0); + } + public static void boot(String text, int level) { + if (bootEnabled && level <= loggerLevel) { + System.out.println(text); + } + } + //@formatter:on +}