Class Stopwatch

java.lang.Object
com.ibm.wala.util.perf.Stopwatch
Direct Known Subclasses:
StopwatchGC

public class Stopwatch extends Object
Basic class to time events
  • Field Details

    • count

      protected int count
  • Constructor Details

    • Stopwatch

      public Stopwatch()
  • Method Details

    • start

      public void start()
    • stop

      public void stop()
    • getElapsedMillis

      public long getElapsedMillis()
      Returns:
      elapsed time in ms
    • getCount

      public int getCount()
      Returns:
      number of times this stopwatch was stopped
    • toString

      public String toString()
      Overrides:
      toString in class Object