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

public class NanoWatch
extends StopWatch

A nanosecond stop watch.


Field Summary
 
Fields inherited from class com.sun.labs.minion.util.StopWatch
clicks, lastStart, time
 
Constructor Summary
NanoWatch()
           
 
Method Summary
 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
getClicks, 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.