Package htsjdk.samtools.util

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


        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!!");
            }
        }
        watch.stop();
        System.out.println("StringUtil.split() took " + watch.getElapsedTime());
        watch.reset();
       
        watch.start();
        for (int i=0; i<ITERATIONS; ++i) {
View Full Code Here


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

    public int split(final String s, final String[] tokens, final String token) {
        final StringTokenizer tokenizer = new StringTokenizer(s, token, false);
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.