Package com.graphhopper.util
Class StopWatch
java.lang.Object
com.graphhopper.util.StopWatch
Make simple speed measurements possible.
- Author:
- Peter Karich
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
returns the total elapsed time on this stopwatch without the need of stopping itlong
double
returns the elapsed time in ms but includes the fraction as well to get a precise valuelong
getNanos()
float
start()
static StopWatch
started()
static StopWatch
stop()
toString()
-
Constructor Details
-
StopWatch
-
StopWatch
public StopWatch()
-
-
Method Details
-
started
-
started
-
setName
-
start
-
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
-
getTimeString
-