com.planeth.common.timing
Class NanoStopWatch

java.lang.Object
  extended bycom.planeth.common.timing.AbstractStopWatch
      extended bycom.planeth.common.timing.NanoStopWatch

public class NanoStopWatch
extends AbstractStopWatch

A StopWatch using System nanotime

Author:
Andreas Grässer, gal@planet-h.com.
created 03.10.2005

Constructor Summary
NanoStopWatch()
           
 
Method Summary
 void fwind(long millis)
          Goes a defined number of millis forward
 long getElapsedMillis()
          Returns the elapsed millis since last reset
 void reset()
          Resets the StopWatch (to zero)
 
Methods inherited from class com.planeth.common.timing.AbstractStopWatch
createStopWatch, getStartTime, setStartTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NanoStopWatch

public NanoStopWatch()
Method Detail

reset

public void reset()
Description copied from class: AbstractStopWatch
Resets the StopWatch (to zero)

Specified by:
reset in class AbstractStopWatch
See Also:
AbstractStopWatch.reset()

fwind

public void fwind(long millis)
Description copied from class: AbstractStopWatch
Goes a defined number of millis forward

Specified by:
fwind in class AbstractStopWatch
Parameters:
millis -
See Also:
AbstractStopWatch.fwind(long)

getElapsedMillis

public long getElapsedMillis()
Description copied from class: AbstractStopWatch
Returns the elapsed millis since last reset

Specified by:
getElapsedMillis in class AbstractStopWatch
Returns:
elapsed time since last reset
See Also:
AbstractStopWatch.getElapsedMillis()