@Test
    public void testAll() throws Exception {
        StopWatch watch = new StopWatch();
        Assert.assertEquals(0, watch.read());

        watch.tick();
        long s = watch.read();
        Assert.assertEquals(s, watch.read());

        watch.tick();
        s = watch.read();
        Assert.assertTrue(s >= 0);

        watch.reset();
        Assert.assertEquals(0, watch.read());

        StopWatch watch1 = watch.clone();
        Assert.assertEquals(watch1.read(), watch.read());
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/common/src/test/java/com/alipay/sofa/rpc/common/struct/StopWatchTest.java