com.sun.labs.minion.util
Class NanoWatch

java.lang.Object
  extended by com.sun.labs.minion.util.StopWatch
      extended by com.sun.labs.minion.util.NanoWatch
All Implemented Interfaces:
java.io.Serializable

public class NanoWatch
extends StopWatch
implements java.io.Serializable

A nanosecond stop watch.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.labs.minion.util.StopWatch
clicks, lastStart, lastTime, time
 
Constructor Summary
NanoWatch()
           
 
Method Summary
 double getAvgTimeMillis()
           
 double getLastTimeMillis()
           
 double getTimeMillis()
          Gets the time for this nano stop watch in milliseconds.
 void start()
          Starts the timer.
 void stop()
          Stops the timer.
 
Methods inherited from class com.sun.labs.minion.util.StopWatch
accumulate, getAvgTime, getClicks, getLastTime, getTime, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NanoWatch

public NanoWatch()
Method Detail

start

public void start()
Starts the timer.

Overrides:
start in class StopWatch

stop

public void stop()
Stops the timer.

Overrides:
stop in class StopWatch

getTimeMillis

public double getTimeMillis()
Gets the time for this nano stop watch in milliseconds.

Returns:
the accumulated time for this stop watch in milliseconds.

getLastTimeMillis

public double getLastTimeMillis()

getAvgTimeMillis

public double getAvgTimeMillis()