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 |
StopWatch
public StopWatch()
getState
public net.sourceforge.domian.util.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 © 2006-2010. All Rights Reserved.