Package com.firefly.utils.time

Examples of com.firefly.utils.time.TimeProvider


    });
  }

  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

Related Classes of com.firefly.utils.time.TimeProvider

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.