lejos.util
Class Stopwatch

java.lang.Object
  extended by lejos.util.Stopwatch

public class Stopwatch
extends Object

Elapsed time watch (in milliseconds)
To use - construct a new instance.

Author:
Roger Glassey version 2

Constructor Summary
Stopwatch()
           
 
Method Summary
 int elapsed()
          Return elapsed time in milliseconds
 void reset()
          Reset watch to zero
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stopwatch

public Stopwatch()
Method Detail

reset

public void reset()
Reset watch to zero


elapsed

public int elapsed()
Return elapsed time in milliseconds