public class Stopwatch extends java.lang.Object
For additional documentation, see Section 3.2 of Introduction to Programming in Java: An Interdisciplinary Approach by Robert Sedgewick and Kevin Wayne.
Constructor and Description |
---|
Stopwatch()
Create a stopwatch object.
|
Modifier and Type | Method and Description |
---|---|
double |
elapsedTime()
Return elapsed time (in seconds) since this object was created.
|