Modifier and Type | Method and Description |
---|---|
long |
elapsedTime()
Gets elapsed time since this stop watch has been started.
|
String |
getName()
Gets the name of this stop watch.
|
void |
printElapsedTime()
Prints elapsed time since the start of this stop watch.
|
static StopWatch |
start()
Starts a new stop watch and returns instance to it.
|
static StopWatch |
start(String name)
Starts a new stop watch and returns instance to it.
|
String |
toString() |
public static StopWatch start()
public static StopWatch start(String name)
name
- the name of the stop watchpublic long elapsedTime()
public void printElapsedTime()
public String getName()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.