public class StopWatch extends Object
Modifier and Type | Method and Description |
---|---|
float |
getCurrentSeconds()
returns the total elapsed time on this stopwatch without the need of stopping it
|
long |
getMillis() |
double |
getMillisDouble()
returns the elapsed time in ms but includes the fraction as well to get a precise value
|
long |
getNanos() |
float |
getSeconds() |
String |
getTimeString() |
StopWatch |
setName(String name) |
StopWatch |
start() |
static StopWatch |
started() |
static StopWatch |
started(String name) |
StopWatch |
stop() |
String |
toString() |
public StopWatch(String name)
public StopWatch()
public static StopWatch started()
public StopWatch start()
public StopWatch stop()
public float getSeconds()
public float getCurrentSeconds()
public long getMillis()
public double getMillisDouble()
public long getNanos()
public String getTimeString()
Copyright © 2012–2022. All rights reserved.