Package org.ocpsoft.rewrite.util

Examples of org.ocpsoft.rewrite.util.Timer


   }

   @Test
   public void testCachingConfigurationPerformance()
   {
      Timer timer = Timer.getTimer().start();

      int MAX = 5;
      for (int i = 0; i < MAX; i++) {
         new Thread(request).start();
      }

      while (votes < MAX)
      {
         try {
            Thread.sleep(10);
            if (configBuildCount > 1)
            {
               Assert.fail();
            }
         }
         catch (InterruptedException e) {}
      }

      timer.stop();
      long elapsedMilliseconds = timer.getElapsedMilliseconds();
      System.out.println(elapsedMilliseconds + "ms for " + MAX + " requests");
   }
View Full Code Here

TOP

Related Classes of org.ocpsoft.rewrite.util.Timer

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.