Remove Tab

This commit is contained in:
Alexander Xia committed 2018-02-12 12:20:28 +08:00
1 parent 4449ccdd45
commit c40bb38e20
38 files changed
+2331 -2317

No files matched your search

@@ -1,17 +1,17 @@
package customskinloader.utils;
public class TimeUtil {
public static long getCurrentUnixTimestamp(){
return System.currentTimeMillis()/1000l;
}
public static long getUnixTimestamp(long offset){
return getCurrentUnixTimestamp()+offset;
}
public static long getUnixTimestampRandomDelay(long offset){
return getCurrentUnixTimestamp()+offset+random(0,5);
}
private static int random(int min,int max){
return (int)(Math.random()*(max-min+1))+min;
}
public static long getCurrentUnixTimestamp(){
return System.currentTimeMillis()/1000l;
}
public static long getUnixTimestamp(long offset){
return getCurrentUnixTimestamp()+offset;
}
public static long getUnixTimestampRandomDelay(long offset){
return getCurrentUnixTimestamp()+offset+random(0,5);
}
private static int random(int min,int max){
return (int)(Math.random()*(max-min+1))+min;
}
}