Class Timer

  • public class Timer
    extends java.lang.Object
    • Constructor Detail

      • Timer

        public Timer​(long runtime)
        Create a Timer
        runtime - The runtime of the timer in milliseconds
      • Timer

        public Timer()
    • Method Detail

      • formatTime

        public static java.lang.String formatTime​(long milliseconds)
      • formatTime

        public java.lang.String formatTime()
      • setRunTime

        public void setRunTime​(long runTime)
      • finished

        public boolean finished()
      • pause

        public void pause()
      • resume

        public void resume()
      • remaining

        public long remaining()
      • isPaused

        public boolean isPaused()
      • elapsed

        public long elapsed()
      • reset

        public void reset()
      • getHourlyRate

        public int getHourlyRate​(int current)