Class GTimer

java.lang.Object
com.glitchybyte.glib.log.GTimer

public final class GTimer extends Object
Timer class for on-the-fly quick profiling. This DOES NOT replace a real profiler.
  • Constructor Details

    • GTimer

      public GTimer()
      Creates a timer that starts right now!
  • Method Details

    • print

      public void print(String msg, Object... params)
      Logs current elapsed time and a message.
      Parameters:
      msg - Message to log.
      params - Message parameters.