Class Stopwatch


  • @ParametersAreNonnullByDefault
    public class Stopwatch
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Stopwatch​(long timeoutMs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isTimeoutReached()  
      void sleep​(long milliseconds)  
      • Methods inherited from class java.lang.Object

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

      • Stopwatch

        public Stopwatch​(long timeoutMs)
    • Method Detail

      • isTimeoutReached

        @CheckReturnValue
        public boolean isTimeoutReached()
      • sleep

        public void sleep​(long milliseconds)