com.jn.langx.util.timing.TimeReverses Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of langx-java Show documentation
Show all versions of langx-java Show documentation
Java lang extensions for java6+, a supplement to , replacement of a Guava, commons-lang.
Core utilities, Collection utilities, IO utilities, Cache, Configuration library ...
package com.jn.langx.util.timing;
public class TimeReverses {
public static long reverseTimeMillis(long time) {
return Long.MAX_VALUE - time;
}
public static long reverseCurrentTimeMillis() {
return reverseTimeMillis(System.currentTimeMillis());
}
public static long recoveryTimeMillis(long reversedTime) {
return reverseTimeMillis(reversedTime);
}
}