Class Timer


  • public class Timer
    extends Object
    A simple time recorder.
    Author:
    Tilman Neumann
    • Constructor Detail

      • Timer

        public Timer()
        Full constructor, starts timer.
    • Method Detail

      • start

        public void start()
        Restart timer.
      • capture

        public long capture()
        Returns:
        time difference from last check to this check in milliseconds
      • totalRuntime

        public long totalRuntime()
        Returns:
        the total run time in milliseconds since this timer was created or restarted