public class StopWatch
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StopWatch.TimeUnit |
Modifier and Type | Method and Description |
---|---|
long |
get(StopWatch.TimeUnit unit) |
long |
getMillis() |
static StopWatch |
getStarted() |
static StopWatch |
getUnstarted() |
boolean |
isRunning() |
void |
reset() |
void |
resetAndStart() |
void |
start() |
void |
stop() |
long |
stopAndGet(StopWatch.TimeUnit unit) |
long |
stopAndGetMillis() |
public static StopWatch getStarted()
public static StopWatch getUnstarted()
public void start()
public void stop()
public long stopAndGet(StopWatch.TimeUnit unit)
public long stopAndGetMillis()
public long get(StopWatch.TimeUnit unit)
public long getMillis()
public boolean isRunning()
public void reset()
public void resetAndStart()