Class StopWatch

java.lang.Object
com.graphhopper.util.StopWatch

public class StopWatch extends Object
Make simple speed measurements possible.

Author:
Peter Karich
  • Constructor Details

    • StopWatch

      public StopWatch(String name)
    • StopWatch

      public StopWatch()
  • Method Details

    • started

      public static StopWatch started()
    • started

      public static StopWatch started(String name)
    • setName

      public StopWatch setName(String name)
    • start

      public StopWatch start()
    • stop

      public StopWatch stop()
    • getSeconds

      public float getSeconds()
    • getCurrentSeconds

      public float getCurrentSeconds()
      returns the total elapsed time on this stopwatch without the need of stopping it
    • getMillis

      public long getMillis()
    • getMillisDouble

      public double getMillisDouble()
      returns the elapsed time in ms but includes the fraction as well to get a precise value
    • getNanos

      public long getNanos()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTimeString

      public String getTimeString()