Package org.rioproject.impl.watch

Examples of org.rioproject.impl.watch.StopWatch.startTiming()


        Assert.assertEquals(0, watch.getStartTime());

        long prevStartTime = -1;
        for (int i = 0; i < 10; i++) {
            Utils.sleep(100);
            watch.startTiming();
            long startTime = watch.getStartTime();
            Assert.assertTrue(startTime >= 0);
            if (prevStartTime != -1) {
                Assert.assertTrue(startTime > prevStartTime);
            }
View Full Code Here


        }

        checkData(0, watch);

        for (int i = 0; i < 10; i++) {
            watch.startTiming();
            Utils.sleep(100);
            watch.stopTiming();
            checkData(i + 1, watch);
        }
View Full Code Here

                                  >= calcs[j - 1].getValue());
            }
        }

        for (int i = 0; i < 10; i++) {
            watch.startTiming();
            Utils.sleep(100);
            watch.stopTiming();
            checkData(10 + i + 1, watch);
        }
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.