Class Stopwatch

java.lang.Object
is.galia.util.Stopwatch

public final class Stopwatch extends Object

Measures time elapsed. The timer starts at instantiation.

Instances are thread-safe.

  • Constructor Details

    • Stopwatch

      public Stopwatch()
  • Method Details

    • reset

      public void reset()
    • timeElapsed

      public long timeElapsed()
      Returns:
      Number of milliseconds since the stopwatch was started.
    • toString

      public String toString()
      Overrides:
      toString in class Object