Class Timer


  • class Timer
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long startTime  
      (package private) long stopTime  
    • Constructor Summary

      Constructors 
      Constructor Description
      Timer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) double elapsedSeconds()  
      (package private) boolean ranFor​(double seconds)  
      (package private) void start()  
      (package private) long stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • startTime

        long startTime
      • stopTime

        long stopTime
    • Constructor Detail

      • Timer

        Timer()
    • Method Detail

      • start

        void start()
      • stop

        long stop()
      • ranFor

        boolean ranFor​(double seconds)
      • elapsedSeconds

        double elapsedSeconds()