Package lejos.utility

Class Stopwatch


  • public class Stopwatch
    extends java.lang.Object
    Elapsed time watch (in milliseconds)
    To use - construct a new instance.
    Author:
    Roger Glassey version 2
    • Constructor Summary

      Constructors 
      Constructor Description
      Stopwatch()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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