Package org.apache.niolex.commons.test

Examples of org.apache.niolex.commons.test.StopWatch.done()


        System.out.println("ERR " + k);
        break;
      }
      s.stop();
    }
    sw.done();
    sw.print();
  }

}
View Full Code Here


    for (int i = 0; i < RUN_ITER; ++i) {
      Stop s = sw.start();
      wr.bufferWrite();
      s.stop();
    }
    sw.done();
    sw.print();
    wr.clean();

    sw.begin(true);
    System.out.println("directWrite");
View Full Code Here

    for (int i = 0; i < RUN_ITER; ++i) {
      Stop s = sw.start();
      wr.directWrite();
      s.stop();
    }
    sw.done();
    sw.print();
    wr.clean();

    sw.begin(true);
    System.out.println("randomWrite");
View Full Code Here

    for (int i = 0; i < RUN_ITER; ++i) {
      Stop s = sw.start();
      wr.randomWrite();
      s.stop();
    }
    sw.done();
    sw.print();
    wr.clean();

    sw.begin(true);
    System.out.println("channelWrite");
View Full Code Here

    for (int i = 0; i < RUN_ITER; ++i) {
      Stop s = sw.start();
      wr.channelWrite();
      s.stop();
    }
    sw.done();
    sw.print();
    wr.clean();

    SystemUtil.sleep(1000);
    wr.clean();
View Full Code Here

        }
        group.list();

        ThreadUtil.sleep(2000);
        System.out.println("Done.");
        sw.done();
        sw.print();
        disp.shutdown();
        ThreadUtil.sleep(2000);
        group.list();
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.