Class QuickTimer

java.lang.Object
me.lokka30.levelledmobs.util.QuickTimer

public class QuickTimer extends Object
This is a small class useful for timing simple things such as the time required to start-up a plugin or run a command.

Mark the starting point of the timer with `QuickTimer timer = new QuickTimer()`, then get the time (in milliseconds) since it started using `QuickTimer#getTimer()`.

Since:
unknown
See Also:
  • Constructor Details

    • QuickTimer

      public QuickTimer()
    • QuickTimer

      public QuickTimer(long startTime)
  • Method Details

    • start

      public void start()
      Re/start the timer.
    • getTimer

      public long getTimer()
      Returns:
      time (millis) since start time