lejos.util
Class Stopwatch
java.lang.Object
lejos.util.Stopwatch
public class Stopwatch
- extends Object
Elapsed time watch (in milliseconds)
To use - construct a new instance.
- Author:
- Roger Glassey
version 2
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 |
Stopwatch
public Stopwatch()
reset
public void reset()
- Reset watch to zero
elapsed
public int elapsed()
- Return elapsed time in milliseconds