org.vertexium.util.IncreasingTime Maven / Gradle / Ivy
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