Examples of MutableDateTime


Examples of org.joda.time.MutableDateTime

    }

    private void checkJISOSetYear() {
        int COUNT = COUNT_FAST;
        // Is it fair to use only MutableDateTime here? You decide.
        MutableDateTime dt = new MutableDateTime();
        for (int i = 0; i < AVERAGE; i++) {
            start("JISO", "setYear");
            for (int j = 0; j < COUNT; j++) {
                dt.setYear(1972);
                if (dt == null) {System.out.println("Anti optimise");}
            }
            end(COUNT);
        }
    }
View Full Code Here

Examples of org.joda.time.MutableDateTime

    //------------------------------------------------------------------------
   
    private void checkJodaSetHour() {
        int COUNT = COUNT_VERY_FAST;
        // Is it fair to use only MutableDateTime here? You decide.
        MutableDateTime dt = new MutableDateTime(GJChronology.getInstance());
        for (int i = 0; i < AVERAGE; i++) {
            start("Joda", "setHour");
            for (int j = 0; j < COUNT; j++) {
                dt.setHourOfDay(13);
                if (dt == null) {System.out.println("Anti optimise");}
            }
            end(COUNT);
        }
    }
View Full Code Here

Examples of org.joda.time.MutableDateTime

    }

    private void checkJISOSetHour() {
        int COUNT = COUNT_VERY_FAST;
        // Is it fair to use only MutableDateTime here? You decide.
        MutableDateTime dt = new MutableDateTime();
        for (int i = 0; i < AVERAGE; i++) {
            start("JISO", "setHour");
            for (int j = 0; j < COUNT; j++) {
                dt.setHourOfDay(13);
                if (dt == null) {System.out.println("Anti optimise");}
            }
            end(COUNT);
        }
    }
View Full Code Here

Examples of org.joda.time.MutableDateTime

    //------------------------------------------------------------------------
   
    private void checkJodaSetGetHour() {
        int COUNT = COUNT_VERY_FAST;
        // Is it fair to use only MutableDateTime here? You decide.
        MutableDateTime dt = new MutableDateTime(GJChronology.getInstance());
        for (int i = 0; i < AVERAGE; i++) {
            start("Joda", "setGetHour");
            for (int j = 0; j < COUNT; j++) {
                dt.setHourOfDay(13);
                int val = dt.getHourOfDay();
                if (dt == null) {System.out.println("Anti optimise");}
            }
            end(COUNT);
        }
    }
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.