Package org.jpos.util

Class StopWatch


  • public class StopWatch
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      StopWatch​(long periodInMillis)  
      StopWatch​(long period, java.util.concurrent.TimeUnit unit)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finish()  
      static <T> T get​(long period, java.util.concurrent.TimeUnit unit, java.util.function.Supplier<T> f)  
      static <T> T get​(long period, java.util.function.Supplier<T> f)  
      boolean isFinished()  
      • Methods inherited from class java.lang.Object

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

      • StopWatch

        public StopWatch​(long period,
                         java.util.concurrent.TimeUnit unit)
      • StopWatch

        public StopWatch​(long periodInMillis)
    • Method Detail

      • finish

        public void finish()
      • get

        public static <T> T get​(long period,
                                java.util.concurrent.TimeUnit unit,
                                java.util.function.Supplier<T> f)
      • get

        public static <T> T get​(long period,
                                java.util.function.Supplier<T> f)