Package stdlib
Class Stopwatch
java.lang.Object
stdlib.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.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Return elapsed time (in seconds) since this object was created.
-
Field Details
-
start
-
-
Constructor Details
-
Stopwatch
public Stopwatch()Create a stopwatch object.
-
-
Method Details
-
elapsedTime
Return elapsed time (in seconds) since this object was created.
-