Package winterwell.utils.time

Examples of winterwell.utils.time.StopWatch


      @Override
      public boolean awaitTermination(long timeout, TimeUnit unit)
          throws InterruptedException {
        timeout = unit.toMillis(timeout);
        StopWatch sw = new StopWatch();
        while (running.get() > 0) {
          if (sw.getTime() >= timeout)
            return false;
        }
        return true;
      }
View Full Code Here

TOP

Related Classes of winterwell.utils.time.StopWatch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.