Package com.firefly.utils.time

Examples of com.firefly.utils.time.TimeProvider.start()


  }

  public static void main(String[] args) throws InterruptedException {
    new TimerWheelExample().test();
    TimeProvider t = new TimeProvider(1000L);
    t.start();
   
    Thread.sleep(1000L);
    long start = t.currentTimeMillis();
    Thread.sleep(5000L);
    System.out.println("TimeProvider: " + (t.currentTimeMillis() - start));
View Full Code Here


  }

  public static void main1(String[] args) throws InterruptedException {
    new TimerWheelExample().test();
    TimeProvider t = new TimeProvider(1000L);
    t.start();
   
    Thread.sleep(1000L);
    long start = t.currentTimeMillis();
    Thread.sleep(5000L);
    System.out.println("TimeProvider: " + (t.currentTimeMillis() - start));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.