Package de.uplanet.util
Klasse Stopwatch
java.lang.Object
de.uplanet.util.Stopwatch
Stopwatch with millisecond time resolution.
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Felddetails
-
MILLIS
public static final long MILLIS- Siehe auch:
-
MICROS
public static final long MICROS- Siehe auch:
-
NANOS
public static final long NANOS- Siehe auch:
-
-
Konstruktordetails
-
Stopwatch
public Stopwatch()Create a stopwatch with millisecond resolution. -
Stopwatch
public Stopwatch(long p_lResolution) Create a stopwatch with a given resolution. -
Stopwatch
Create a stopwatch with a given resolution.- Parameter:
p_timeUnit- The resolution.
-
-
Methodendetails
-
start
Start the stopwatch.- Gibt zurück:
- This stopwatch.
-
stop
public long stop()Get the meantime in the time unit given to the constructor.- Gibt zurück:
- The meantime.
-
restart
public long restart()Get the meantime in the time unit given to the constructor and reset to zero.- Gibt zurück:
- The meantime.
-