public final class Stopwatch
extends java.lang.Object
It just calls System.currentTimeMillis.
Its probably not really accurate because of all the extra method calls, but it sure is convenient. Its mostly for feedback, not benchmarking.
Constructor and Description |
---|
Stopwatch()
Create a new stopwatch, and mark the time of creation.
|
Modifier and Type | Method and Description |
---|---|
long |
elapsed()
Return the elapsed time in milliseconds between when the last restart()
ocurred and the current system time.
|
void |
restart()
Reset the start time to the current system time.
|
Copyright ? 2002 Clarity Systems Group, LLC. All Rights Reserved.