Package de.uplanet.util
Class Stopwatch
java.lang.Object
de.uplanet.util.Stopwatch
Stopwatch with millisecond time resolution.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
MILLIS
public static final long MILLIS- See Also:
-
MICROS
public static final long MICROS- See Also:
-
NANOS
public static final long NANOS- See Also:
-
-
Constructor Details
-
Method Details
-
start
public void start()Start the stopwatch. -
stop
public long stop()Get the meantime in milliseconds.- Returns:
- The meantime in milliseconds.
-
restart
public long restart()Get the meantime in milliseconds and reset to zero.- Returns:
- The meantime in milliseconds.
-