Class Timer


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

      • Timer

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

        public Timer()
    • Method Detail

      • formatTime

        public java.lang.String formatTime()
      • formatRemainingTime

        public java.lang.String formatRemainingTime()
      • setRunTime

        public void setRunTime​(long runTime)
      • finished

        public boolean finished()
      • start

        public void start()
      • 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)
      • getLongHourlyRate

        public long getLongHourlyRate​(long current)
      • formatTime

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