Class Timer

java.lang.Object
de.tilman_neumann.util.Timer

public class Timer
extends java.lang.Object
A simple time recorder.
  • Constructor Summary

    Constructors
    Constructor Description
    Timer()
    Full constructor, starts timer.
  • Method Summary

    Modifier and Type Method Description
    long capture()  
    void start()
    Restart timer.
    long totalRuntime()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Timer

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

    • 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