mako5.evnt
Class StopWatch

java.lang.Object
  extended by mako5.evnt.StopWatch

public class StopWatch
extends Object

This class is useful for time benchmarking. It marks a start time and end time, and then reports the elapsed time between start and finish.

Since:
07-Jul 2006
Version:
07-Jul 2006
Author:
Paul Jarrett

Constructor Summary
StopWatch()
          Makes a new StopWatch.
 
Method Summary
 long mark()
          Marks the next end time and returns the elapsed time.
 void reset()
          Resets the starting time to now.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopWatch

public StopWatch()
Makes a new StopWatch.

Since:
07-Jul 2006
Method Detail

reset

public void reset()
Resets the starting time to now.

Since:
07-Jul 2006

mark

public long mark()
Marks the next end time and returns the elapsed time.

Since:
07-Jul 2006