ObjectStopwatch
public class Stopwatch
Stopwatch. This class is a data type for measuring the running time (wall clock) of a program.
For additional documentation, see Section 3.2 of Introduction to Programming in Java: An Interdisciplinary Approach by Robert Sedgewick and Kevin Wayne.
| Constructor Summary | |
|---|---|
Stopwatch()
Create a stopwatch object. |
|
| Method Summary | |
|---|---|
double |
elapsedTime()
Return elapsed time (in seconds) since this object was created. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stopwatch()
| Method Detail |
|---|
public double elapsedTime()