All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vertexium.util.IncreasingTime Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.util;

public class IncreasingTime {
    private static long last = System.currentTimeMillis();

    public static synchronized long currentTimeMillis() {
        long now = System.currentTimeMillis();
        if (now > last) {
            last = now;
        } else {
            last++;
        }
        return last;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy