public class StopWatch
extends java.lang.Object
start()| Modifier and Type | Method and Description | 
|---|---|
long | 
elapsedTime()
Gets elapsed time since this stop watch has been started. 
 | 
java.lang.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(java.lang.String name)
Starts a new stop watch and returns instance to it. 
 | 
java.lang.String | 
toString()  | 
public static StopWatch start()
public static StopWatch start(java.lang.String name)
name - the name of the stop watchpublic long elapsedTime()
public void printElapsedTime()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.