public class Stopwatch
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Stopwatch()
Constructor
initializes the object
|
Modifier and Type | Method and Description |
---|---|
long |
getMilliSeconds()
returns the milliseconds
|
double |
getSeconds()
returns the seconds
|
void |
start()
starts the "clock"
|
void |
stop()
stops the "clock"
|
java.lang.String |
toString()
returns the time in Seconds
|
public void start()
public void stop()
public double getSeconds()
public long getMilliSeconds()
public java.lang.String toString()
toString
in class java.lang.Object