net.sourceforge.domian.util
Class StopWatch
java.lang.Object
net.sourceforge.domian.util.StopWatch
public class StopWatch
- extends java.lang.Object
Nanosecond stop watch with some timely overhead...
This class is not thread-safe.
- Since:
- 0.3
- Author:
- Eirik Torske
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
startTime
private long startTime
lastLapTime
private long lastLapTime
stopTime
private long stopTime
state
private StopWatch.State state
elapsedTimeIntervalList
private final java.util.List<java.lang.Long> elapsedTimeIntervalList
StopWatch
public StopWatch()
getState
public StopWatch.State getState()
reset
public StopWatch reset()
start
public StopWatch start()
stop
public StopWatch stop()
getElapsedTime
public long getElapsedTime()
getLapTime
public long getLapTime()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
elapsedTimeToString
public java.lang.String elapsedTimeToString()
lapTimeToString
public java.lang.String lapTimeToString()
print
public static java.lang.String print(long elapsedTime)
- NB! Rounding mode is plain flooring.
Copyright © 2009-2010. All Rights Reserved.