Package htsjdk.samtools.util

Examples of htsjdk.samtools.util.StopWatch.start()


    public void run() {
        final int ITERATIONS = 1000000;
        final String[] fields = new String[10000];
        final StopWatch watch = new StopWatch();

        watch.start();
        for (int i=0; i<ITERATIONS; ++i) {
            if (StringUtil.split(text, fields, '\t') > 100) {
                System.out.println("Mama Mia that's a lot of tokens!!");
            }
        }
View Full Code Here


        }
        watch.stop();
        System.out.println("StringUtil.split() took " + watch.getElapsedTime());
        watch.reset();
       
        watch.start();
        for (int i=0; i<ITERATIONS; ++i) {
            if (split(text, fields, "\t") > 100) {
                System.out.println("Mama Mia that's a lot of tokens!!");
            }
        }
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.