Package de.mhus.lib.core.util
Class AtomicClockUtil
- java.lang.Object
-
- de.mhus.lib.core.util.AtomicClockUtil
-
public class AtomicClockUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>TIME_SERVERS
-
Constructor Summary
Constructors Constructor Description AtomicClockUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longgetAtomicTime(String timeServerInternet)static longgetCurrentTime()Returns the current time cached 30 minutes.static voidmain(String[] args)
-
-
-
Method Detail
-
getAtomicTime
public static long getAtomicTime(String timeServerInternet) throws UnknownHostException, IOException, TimeoutException
-
getCurrentTime
public static long getCurrentTime()
Returns the current time cached 30 minutes. The time will be interpolated with the current time- Returns:
- actual time millies in UTC
-
main
public static void main(String[] args)
-
-