Examples of MicrosecondsSyncClock


Examples of com.netflix.astyanax.clock.MicrosecondsSyncClock

public class TimeUUIDTest {
    @Test
    @Ignore
    public void testMicrosResolution() {
        Clock clock = new MicrosecondsSyncClock();
        long time = clock.getCurrentTime();

        UUID uuid = TimeUUIDUtils.getUniqueTimeUUIDinMicros();
        long uuidTime = TimeUUIDUtils.getMicrosTimeFromUUID(uuid);

        Assert.assertEquals(time / 10000, uuidTime / 10000);
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.